mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
Adds the onPostAdd callback for when objects are created via TAML.
This commit is contained in:
parent
6ccf97e35d
commit
749ac4efc2
1 changed files with 4 additions and 0 deletions
|
|
@ -284,6 +284,10 @@ SimObject* Taml::read( const char* pFilename )
|
||||||
// No, so warn.
|
// No, so warn.
|
||||||
Con::warnf( "Taml::read() - Failed to load an object from the file '%s'.", mFilePathBuffer );
|
Con::warnf( "Taml::read() - Failed to load an object from the file '%s'.", mFilePathBuffer );
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
pSimObject->onPostAdd();
|
||||||
|
}
|
||||||
|
|
||||||
return pSimObject;
|
return pSimObject;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue