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 870ee9fb5b
commit 6ebb05749e

View file

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