Files
sbox-public/engine/Sandbox.Engine/Scene/GameObject/GameObject.PrefabInstanceData.cs
Lorenz Junglas 5517a11f95 Minor prefab improvements (#4155)
* Use ToArray to avoid collection modified while iterated exception

Not sure this ever actually happened but better to be save.

* Remove ValidatePrefabLookup from SerializePrefabInstance

ValidatePrefabLookup may have modified GUIDs incorrectly on undo/redo.
Also Serialize should be read-only op.
ValidatePrefabLookup  is still called at enough other places.
2026-02-27 09:59:21 +01:00

30 KiB