[UNRESOLVED] TORQUE_PLAYER and onAddToScene
by Aaron Miller · in Torque Game Builder · 05/24/2010 (5:34 pm) · 1 replies
Has anyone had problems with onAddToScene not being called while running a project in MSVC 2008?
onAddToScene isn't getting called in my build of TGB 1.7.5 when debugging under MSVC 2008. It *is* being called from the Editor and when I run using Torsion, but the code I see referencing it is #ifdef'd out because TORQUE_PLAYER is not defined.
Any clues or things I could try?
onAddToScene isn't getting called in my build of TGB 1.7.5 when debugging under MSVC 2008. It *is* being called from the Editor and when I run using Torsion, but the code I see referencing it is #ifdef'd out because TORQUE_PLAYER is not defined.
Any clues or things I could try?
Torque 3D Owner Aaron Miller
When I look at t2dSceneObject.cc, in the onAdd method of t2dSceneObject I see
#ifndef TORQUE_TOOLS if (getSceneGraph()) Con::executef(this, 2, "onAddToScene", getSceneGraph()->getIdString()); #endifNo TORQUE_TOOLS, no onAddToScene.