Skip to content

Commit

Permalink
Fix a dumb mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
LunaTheFoxgirl committed Jun 5, 2021
1 parent 0f11dc3 commit 587d095
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/inochi2d/math/transform.d
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ public:
else tnew.translation.x = pixelSnap ? round(standAloneTrans.x) : standAloneTrans.x;

if (!lockTranslationY) tnew.translation.y = pixelSnap ? round(trans.y) : trans.y;
else tnew.translation.x = pixelSnap ? round(standAloneTrans.y) : standAloneTrans.y;
else tnew.translation.y = pixelSnap ? round(standAloneTrans.y) : standAloneTrans.y;

if (!lockTranslationZ) tnew.translation.z = pixelSnap ? round(trans.z) : trans.z;
else tnew.translation.x = pixelSnap ? round(standAloneTrans.z) : standAloneTrans.z;
else tnew.translation.z = pixelSnap ? round(standAloneTrans.z) : standAloneTrans.z;

tnew.update();

Expand Down

0 comments on commit 587d095

Please sign in to comment.