mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-20 04:34:48 +00:00
Adds the onPostAdd callback for when objects are created via TAML.
This commit is contained in:
parent
6ccf97e35d
commit
749ac4efc2
|
|
@ -284,6 +284,10 @@ SimObject* Taml::read( const char* pFilename )
|
|||
// No, so warn.
|
||||
Con::warnf( "Taml::read() - Failed to load an object from the file '%s'.", mFilePathBuffer );
|
||||
}
|
||||
else
|
||||
{
|
||||
pSimObject->onPostAdd();
|
||||
}
|
||||
|
||||
return pSimObject;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue