getId() object is the GuiTreeView control itself, instead it should instead r"> GuiTreeViewCtrl getSelectedObject bug | Torque Game Engine | Forums | Community | GarageGames.com

Game Development Community

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

#1
12/31/2006 (5:00 pm)
Nice catch.

Thanks for posting this Clint.

Todd