mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-24 22:59:24 +00:00
clean up math varsize complaints
This commit is contained in:
parent
1230d0d280
commit
0ce2da3a23
30 changed files with 61 additions and 56 deletions
|
|
@ -902,7 +902,7 @@ void GuiInspectorTypeCommand::_setCommand( GuiButtonCtrl *ctrl, StringTableEntry
|
|||
|
||||
S32 written = dSprintf( szBuffer, len, "%s(\"", mTextEditorCommand );
|
||||
expandEscape(szBuffer.address() + written, command);
|
||||
written = strlen(szBuffer);
|
||||
written = (S32)strlen(szBuffer);
|
||||
dSprintf( szBuffer.address() + written, len - written, "\", \"%d.apply\", %d.getRoot());", getId(), getId() );
|
||||
|
||||
ctrl->setField( "Command", szBuffer );
|
||||
|
|
|
|||
|
|
@ -648,17 +648,17 @@ void GuiConvexEditorCtrl::on3DMouseDragged(const Gui3DMouseEvent & event)
|
|||
F32 scalar = 1;
|
||||
mConvexSEL->mSurfaceUVs[mFaceSEL].scale += (Point2F(scale.x, scale.y) * scalar);
|
||||
|
||||
if (mConvexSEL->mSurfaceUVs[mFaceSEL].scale.x < 0.01)
|
||||
mConvexSEL->mSurfaceUVs[mFaceSEL].scale.x = 0.01;
|
||||
if (mConvexSEL->mSurfaceUVs[mFaceSEL].scale.x < 0.01f)
|
||||
mConvexSEL->mSurfaceUVs[mFaceSEL].scale.x = 0.01f;
|
||||
|
||||
if (mConvexSEL->mSurfaceUVs[mFaceSEL].scale.y < 0.01)
|
||||
mConvexSEL->mSurfaceUVs[mFaceSEL].scale.y = 0.01;
|
||||
if (mConvexSEL->mSurfaceUVs[mFaceSEL].scale.y < 0.01f)
|
||||
mConvexSEL->mSurfaceUVs[mFaceSEL].scale.y = 0.01f;
|
||||
|
||||
if (mConvexSEL->mSurfaceUVs[mFaceSEL].scale.x > 100)
|
||||
mConvexSEL->mSurfaceUVs[mFaceSEL].scale.x = 100;
|
||||
if (mConvexSEL->mSurfaceUVs[mFaceSEL].scale.x > 100.0f)
|
||||
mConvexSEL->mSurfaceUVs[mFaceSEL].scale.x = 100.0f;
|
||||
|
||||
if (mConvexSEL->mSurfaceUVs[mFaceSEL].scale.y > 100)
|
||||
mConvexSEL->mSurfaceUVs[mFaceSEL].scale.y = 100;
|
||||
if (mConvexSEL->mSurfaceUVs[mFaceSEL].scale.y > 100.0f)
|
||||
mConvexSEL->mSurfaceUVs[mFaceSEL].scale.y = 100.0f;
|
||||
|
||||
Point2F test = mConvexSEL->mSurfaceUVs[mFaceSEL].scale;
|
||||
mConvexSEL->setMaskBits( ConvexShape::UpdateMask );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue