mirror of
https://github.com/Facepunch/sbox-public.git
synced 2025-12-23 22:48:07 -05:00
fix prefabs not being added to vmap references
This commit is contained in:
@@ -153,6 +153,14 @@ public sealed class MapWorld : MapNode
|
||||
{
|
||||
references.AddString( x.ResourcePath );
|
||||
}
|
||||
|
||||
var referencedPrefabs = Scene.GetAllObjects( false )
|
||||
.Where( x => x.IsPrefabInstanceRoot );
|
||||
|
||||
foreach ( var x in referencedPrefabs )
|
||||
{
|
||||
references.AddString( x.PrefabInstanceSource );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user