mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 22:54:34 +00:00
For for Issue #106 Convex Shape Bandwidth
This commit is contained in:
parent
974e33734c
commit
c6b6ffc10b
3 changed files with 38 additions and 7 deletions
|
|
@ -871,10 +871,17 @@ void GuiConvexEditorCtrl::renderScene(const RectI & updateRect)
|
|||
text = "Scale face.";
|
||||
}
|
||||
}
|
||||
|
||||
// Issue a warning in the status bar
|
||||
// if this convex has an excessive number of surfaces...
|
||||
if ( mConvexSEL && mConvexSEL->getSurfaces().size() > ConvexShape::smMaxSurfaces )
|
||||
{
|
||||
text = "WARNING: Reduce the number of surfaces on the selected ConvexShape, only the first 100 will be saved!";
|
||||
}
|
||||
|
||||
Con::executef( statusbar, "setInfo", text.c_str() );
|
||||
|
||||
Con::executef( statusbar, "setSelectionObjectsByCount", Con::getIntArg( mConvexSEL == NULL ? 0 : 1 ) );
|
||||
Con::executef( statusbar, "setSelectionObjectsByCount", Con::getIntArg( mConvexSEL == NULL ? 0 : 1 ) );
|
||||
}
|
||||
|
||||
if ( mActiveTool )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue