Adds the onPostAdd callback for when objects are created via TAML.

This commit is contained in:
Areloch 2016-05-14 15:36:58 -05:00
parent 6ccf97e35d
commit 749ac4efc2

View file

@ -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;
}