Game Development Community

Bug in GuiTreeviewCtrl.cc (1.4 RC2)

by Stephane Savioz · in Torque Game Engine · 09/23/2005 (1:26 am) · 1 replies

In the World Editor, it is possible to have 2 Mission groups selected (see picture, 2 of them are selected in green)

www.savioz.ch/garagegames/bugtreeview.JPG
Here is my fix :

in GuiTreeViewCtrl.cc::onRenderCell()

change the code in row 2785

if (item->isParent())
      {
         if ( !dStrcmp(item->getObject()->getClassName(), "SimGroup") )
         {
            if (item->isExpanded())
               item->mIcon = SimGroup1;
            else
               item->mIcon = SimGroup2;
         }
      }

by

if ( !dStrcmp(item->getObject()->getClassName(), "SimGroup") )
	{
		 if (item->isParent())
		 {
            if (item->isExpanded())
               item->mIcon = SimGroup1;
            else
               item->mIcon = SimGroup2;
		 }
		 else
			item->mIcon = SimGroup2;
	}

#1
09/23/2005 (9:43 pm)
Nice fix, Stephane. Going into SVN, will be in the next CVS commit.