Browse Source

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

Areloch 9 years ago
parent
commit
749ac4efc2
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Engine/source/persistence/taml/taml.cpp

+ 4 - 0
Engine/source/persistence/taml/taml.cpp

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