Files
sbox-public/engine/Sandbox.Engine/Scene/GameObject/GameObject.Prefab.cs
Lorenz Junglas 01e494b65a Fix nested prefab instances after break/reparent (#5097)
* Add test ensuring nested prefabs have valid mappings after unlinking there parent

* Initialize nested mappings in PostSerialize

InitMappingsForNestedInstance ran during deserialization before the object's id and children were set, so loaded nested instances got a lookup keyed by stale temporary ids.
Defer building those mappings to PostDeserialize.
2026-06-18 08:46:10 +02:00

6.0 KiB