Once more T50565: Allow using planar constraints for scale manipulator
authorJulian Eisel <eiseljulian@gmail.com>
Tue, 7 Mar 2017 10:23:07 +0000 (11:23 +0100)
committerJulian Eisel <eiseljulian@gmail.com>
Tue, 7 Mar 2017 10:23:07 +0000 (11:23 +0100)
source/blender/editors/transform/transform_manipulator.c

index 1567cafeb08734aa1bb1841289b61f9a30f5fc57..40c123d8732c2d90518f9834b033294d81970554 100644 (file)
@@ -1872,10 +1872,8 @@ int BIF_do_manipulator(bContext *C, const struct wmEvent *event, wmOperator *op)
                drawflags = manipulator_selectbuf(sa, ar, event->mval, 0.2f * (float)U.tw_hotspot);
                if (drawflags == 0) drawflags = val;
 
-               /* We are not doing translation but were requested to do planar constraints.
-                * This wouldn't work, so we give other keymaps a chance.
-                */
-               if ((drawflags & MAN_TRANS_C) == 0 && use_planar) {
+               /* Planar constraint doesn't make sense for rotation, give other keymaps a chance */
+               if ((drawflags & MAN_ROT_C) && use_planar) {
                        return 0;
                }