mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Shift tracking of dynamicObjects from strict child objects for Scenes, to tracking the objects but keeping them in the Cleanup Group to fix prefab loading behavior
Shifted to utilizing SimGroupInterator and persistenceManager to fix saving issues with SubScenes Shifted to utilizing SimGroupIterator for Scene saving to standardize and minimize object misses Changed prefab load file logic to add loaded child simgroup to rootscene for consistent tracking and avoiding conflicts with subScene's hijacking the ImmediateGroup var Reduced duplication of build<type>field callback for inspectors Added more standard field type lookups to inspector group when creating a field to avoid misses for types like 'F32' or similar. Folded the added-on MinSize/MaxSize/SimgroupSelect fields for SimGroup editing into a single compound field and fixed bugs with it's behavior so it works as expected now
This commit is contained in:
parent
484ece3d28
commit
10d1aeca1f
9 changed files with 221 additions and 128 deletions
|
|
@ -371,6 +371,12 @@ void Prefab::_loadFile( bool addFileNotify )
|
|||
return;
|
||||
}
|
||||
|
||||
SimObjectPtr<Scene> rootScene = Scene::getRootScene();
|
||||
if(rootScene.isValid())
|
||||
{
|
||||
rootScene->addDynamicObject(group);
|
||||
}
|
||||
|
||||
if ( addFileNotify )
|
||||
Torque::FS::AddChangeNotification( mFilename, this, &Prefab::_onFileChanged );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue