Game Development Community

Bug Fix: DebugDrawer doesn't work when the editor is on

by Dan Keller · in Torque Game Engine Advanced · 07/21/2009 (2:20 pm) · 0 replies

For those who don't know, DebugDrawer is a handy little class that can draw lines, boxes, etc in worldspace for debugging purposes. Unfortunately, the current version is broken such that it all disappears when the editor is on. Fortunately, the fix is really simple.

In gui/3d/guiTSControl.cpp change

renderWorld(updateRect);

    DebugDrawer::get()->render();

to

DebugDrawer::get()->render();

    renderWorld(updateRect);

Beats me why it works, but it does.

PS: Should I have checked "bug submissions" even though this is a bug fix?