GuiTreeViewCtrl getSelectedObject bug
by Clint S. Brewer · in Torque Game Engine · 12/12/2006 (10:00 am) · 1 replies
In
ConsoleMethod(GuiTreeViewCtrl, getSelectedObject, S32, 2, 2, "returns the currently selected simObject in inspector mode or -1")
getSelectedObject
returns object->getId()
object is the GuiTreeView control itself,
instead it should instead return
obj->getId();
which is the actual object we are looking for
best,
clint
ConsoleMethod(GuiTreeViewCtrl, getSelectedObject, S32, 2, 2, "returns the currently selected simObject in inspector mode or -1")
getSelectedObject
returns object->getId()
object is the GuiTreeView control itself,
instead it should instead return
obj->getId();
which is the actual object we are looking for
best,
clint
About the author
Torque Owner William Todd Scott
Thanks for posting this Clint.
Todd