浏览代码

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

Areloch 9 年之前
父节点
当前提交
749ac4efc2
共有 1 个文件被更改,包括 4 次插入0 次删除
  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.
         Con::warnf( "Taml::read() - Failed to load an object from the file '%s'.", mFilePathBuffer );
     }
+    else
+    {
+       pSimObject->onPostAdd();
+    }
 
     return pSimObject;
 }