Transform: use scene-orientation for MMB axis constraint
authorCampbell Barton <ideasman42@gmail.com>
Wed, 28 Nov 2018 08:48:19 +0000 (19:48 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 28 Nov 2018 08:48:19 +0000 (19:48 +1100)
Follows the change made for axis keys.

source/blender/editors/transform/transform.c

index bd2a8f04996c4d35297ebd32a365e0d914551d6a..97834f064f47e694b623f5e92b77ac7e58fbd3d6 100644 (file)
@@ -1371,16 +1371,7 @@ int transformEvent(TransInfo *t, const wmEvent *event)
                                                        stopConstraint(t);
                                                }
                                                else {
-                                                       if (event->shift) {
-                                                               initSelectConstraint(t, t->spacemtx);
-                                                       }
-                                                       else {
-                                                               /* bit hackish... but it prevents mmb select to print the orientation from menu */
-                                                               float mati[3][3];
-                                                               strcpy(t->spacename, "global");
-                                                               unit_m3(mati);
-                                                               initSelectConstraint(t, mati);
-                                                       }
+                                                       initSelectConstraint(t, t->spacemtx);
                                                        postSelectConstraint(t);
                                                }
                                        }