From 749ac4efc202a91b4b591cedcde8f4fb6a596d86 Mon Sep 17 00:00:00 2001 From: Areloch Date: Sat, 14 May 2016 15:36:58 -0500 Subject: [PATCH] Adds the onPostAdd callback for when objects are created via TAML. --- Engine/source/persistence/taml/taml.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Engine/source/persistence/taml/taml.cpp b/Engine/source/persistence/taml/taml.cpp index caea660cd..dfe9266cf 100644 --- a/Engine/source/persistence/taml/taml.cpp +++ b/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; }