Fix #33266: Transforming with Y axis constraint didn't apply aspect ratio correct
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 23 Nov 2012 09:22:34 +0000 (09:22 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Fri, 23 Nov 2012 09:22:34 +0000 (09:22 +0000)
It first needed to constraint numeric input and then apply aspect correction only,
otherwise aspect correction would be applied on a wrong axis.

source/blender/editors/transform/transform_constraints.c

index 311cb5ee94d762224302ba67ef72810c26d48e1b..947bdf53bee73d202264d36a4525db6e2958767c 100644 (file)
@@ -150,8 +150,8 @@ static void postConstraintChecks(TransInfo *t, float vec[3], float pvec[3])
 
        if (hasNumInput(&t->num)) {
                applyNumInput(&t->num, vec);
-               removeAspectRatio(t, vec);
                constraintNumInput(t, vec);
+               removeAspectRatio(t, vec);
        }
 
        /* autovalues is operator param, use that directly but not if snapping is forced */