mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 14:44:36 +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
|
|
@ -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