CloneWithBehaviors is spamming the console
by Dan Keller · in Torque Game Builder · 07/29/2008 (10:46 am) · 2 replies
Whenever I call the cloneWithBehaviors function, I get this odd console message. The clone works fine, but the error (and 800KB console.log) is very irritating.
==>$clone = pCircle.cloneWithBehaviors(); t2dSceneGraph::addToScene() - Object '4578' is already in a SceneGraph!.
About the author
Recent Threads
#2
12/17/2008 (7:30 am)
In the aStar tutorial example code it describes a new pref you can set, I think it's called $pref::Con::WarnSceneOccupancy or something similar. Check your prefs file for the exact name, and set it to false to turn off that extraneous warning.
Torque Owner PawelP