Game Development Community

World Editor Inspector Tree

by Steve Lamperti · in Torque Game Engine · 10/03/2006 (5:15 pm) · 1 replies

In my project, based on 1.4.2, when I open and close objects/simgroups in the world editor inspector tree, the objects sometimes move in and out of the simgroup/object that they are contained in. Specifically I have been having trouble editing paths, because when I open the path simgroup, and then close it again, or open a path and close it again, the markers or other paths sometimes move out of the groups that they are in. This makes it quite difficult to edit the markers and paths. It feels like what may be happening is something like the opening/closing click is also being interpreted as a drop and drag click.

I tried the same thing with the TGE demo, and was able to reproduce it once, but not nearly as easily as I get the problem in my project.

If anyone is seeing the same problem, or knows of a fix, I would appreciate hearing about it.

#1
10/05/2006 (4:47 pm)
Figured out both how to make this harder to reproduce in my project, and how to reproduce this in the shipping 1.4 Torque. The problem was that I was getting a mouse dragged event between my mouse down and my mouse up. I made this harder to reproduce by checking to make sure that the mouse dragged is only sent if the mouse actually moves. This helped, as I now have the same behavior as shipping torque. Here's how to reproduce the problem in shipping torque:

1) Select a simobject, like the sunflare1 or 2.
2) Click on the + button on a simgroup a little lower down in the tree without releasing the mouse button.
3) Move the cursor even a pixel without releasing the button.
4) Release the button.

What you should see, is a drag and drop behavior that moves the sunflare into the simgroup, in addition to the click opening the simgroup. This is an extreme case of something that happens every now and then by accident, and makes the editor feel less stable.