correction to own recent changes to exitmode using axis-matrix, fallback to old behav...
authorCampbell Barton <ideasman42@gmail.com>
Wed, 10 Apr 2013 23:05:35 +0000 (23:05 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 10 Apr 2013 23:05:35 +0000 (23:05 +0000)
source/blender/editors/transform/transform_constraints.c

index 5515ca69bba3aeb409f5e89f619d8abc9e230546..87bb1e1f154bcda54ded9fa46df004ea2c3f5a1a 100644 (file)
@@ -559,7 +559,10 @@ void setLocalConstraint(TransInfo *t, int mode, const char text[])
 {
        /* edit-mode now allows local transforms too */
 #if 1
-       if ((t->flag & T_EDIT) && (t->around != V3D_LOCAL)) {
+       if ((t->flag & T_EDIT) &&
+           /* not all editmode supports axis-matrix */
+           ((t->around != V3D_LOCAL) || (!ELEM3(t->obedit->type, OB_MESH, OB_MBALL, OB_ARMATURE))))
+       {
                float obmat[3][3];
                copy_m3_m4(obmat, t->scene->obedit->obmat);
                normalize_m3(obmat);