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

This commit is contained in:
Lukas Joergensen 2018-04-21 10:26:20 +02:00
parent cd06f569fa
commit df32264387

View file

@ -455,7 +455,6 @@ class SimObject: public ConsoleObject, public TamlCallbacks
{
T* object = new T;
object->incRefCount();
object->registerObject();
return object;
}