mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
Allow drawing 2D squares with 0 rotation angle.
This commit is contained in:
parent
195e05dcfb
commit
9a05899d8e
2 changed files with 7 additions and 2 deletions
|
|
@ -558,7 +558,12 @@ void GFXDrawUtil::draw2DSquare( const Point2F &screenPoint, F32 width, F32 spinA
|
|||
|
||||
verts[0].color = verts[1].color = verts[2].color = verts[3].color = mBitmapModulation;
|
||||
|
||||
if(spinAngle != 0.f)
|
||||
if (spinAngle == 0.0f)
|
||||
{
|
||||
for( S32 i = 0; i < 4; i++ )
|
||||
verts[i].point += offset;
|
||||
}
|
||||
else
|
||||
{
|
||||
MatrixF rotMatrix( EulerF( 0.0, 0.0, spinAngle ) );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue