From 6ebb05749eab000b284fcd36d87e86248912b3ba Mon Sep 17 00:00:00 2001 From: Lukas Joergensen Date: Sat, 21 Apr 2018 10:26:20 +0200 Subject: [PATCH] Don't automatically register objects, allow for modifications to the intial fields before register. This is necessary in order to set the fields before initialization such as TorqueScript does --- Engine/source/console/simObject.h | 1 - 1 file changed, 1 deletion(-) diff --git a/Engine/source/console/simObject.h b/Engine/source/console/simObject.h index 2119ea6a9..1fb30a0ef 100644 --- a/Engine/source/console/simObject.h +++ b/Engine/source/console/simObject.h @@ -455,7 +455,6 @@ class SimObject: public ConsoleObject, public TamlCallbacks { T* object = new T; object->incRefCount(); - object->registerObject(); return object; }