Browse Source

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

Areloch 9 năm trước cách đây
mục cha
commit
749ac4efc2
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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;
 }