fix for own recent addition of transform indervidual-axis in editmode, not working...
[blender-staging.git] / source / blender / editors / transform / transform_generics.c
index fa976b2a0f860f9b94301301f5a86126727db274..78077084eccd5a45f88a64d2d98e3bc46d6fca6a 100644 (file)
@@ -1027,7 +1027,12 @@ int initTransInfo(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *even
        t->ar = ar;
        t->obedit = obedit;
        t->settings = ts;
-       
+
+       if (obedit) {
+               copy_m3_m4(t->obedit_mat, obedit->obmat);
+               normalize_m3(t->obedit_mat);
+       }
+
        t->data = NULL;
        t->ext = NULL;