Game Development Community

T3D Beta 1 Bug - Road Editor doesn't undo doesn't update road graphics

by Tim Dix (Raverix) · in Torque 3D Professional · 05/17/2009 (4:59 pm) · 1 replies

With the road editor active, Move a segment of the road, then press Undo, the road will not render itself in the right place, however, the node and the lines that display in the editor correctly return to the previous state.

cantanogames.com/misc/before.jpgcantanogames.com/misc/after.jpg

#1
05/26/2009 (2:14 pm)
Fixed for beta3. Thanks for the post!

Fix is decalRoad.cpp, method should be changed to look like this.
void DecalRoad::regenerate()
{
   _generateEdges();
   _captureVerts();   
   setMaskBits( NodeMask | GenEdgesMask | ReClipMask );
}