Fix #19477: transform manipulator did not work correct with
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 28 Sep 2009 15:14:52 +0000 (15:14 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 28 Sep 2009 15:14:52 +0000 (15:14 +0000)
quad view, got wrong context.

source/blender/editors/transform/transform_manipulator.c

index 93bc02d71803fa32d943696f0976f17ed594bb6c..c116b037d6ebc743f336bfc3bbe0ceb42945f9ac 100644 (file)
@@ -1602,7 +1602,7 @@ int BIF_do_manipulator(bContext *C, struct wmEvent *event, wmOperator *op)
                                break;
                        }
                        RNA_boolean_set_array(op->ptr, "constraint_axis", constraint_axis);
-                       WM_operator_name_call(C, "TFM_OT_translate", WM_OP_INVOKE_REGION_WIN, op->ptr);
+                       WM_operator_name_call(C, "TFM_OT_translate", WM_OP_INVOKE_DEFAULT, op->ptr);
                }
                else if (drawflags & MAN_SCALE_C) {
                        switch(drawflags) {
@@ -1632,10 +1632,10 @@ int BIF_do_manipulator(bContext *C, struct wmEvent *event, wmOperator *op)
                                break;
                        }
                        RNA_boolean_set_array(op->ptr, "constraint_axis", constraint_axis);
-                       WM_operator_name_call(C, "TFM_OT_resize", WM_OP_INVOKE_REGION_WIN, op->ptr);
+                       WM_operator_name_call(C, "TFM_OT_resize", WM_OP_INVOKE_DEFAULT, op->ptr);
                }
                else if (drawflags == MAN_ROT_T) { /* trackball need special case, init is different */
-                       WM_operator_name_call(C, "TFM_OT_trackball", WM_OP_INVOKE_REGION_WIN, op->ptr);
+                       WM_operator_name_call(C, "TFM_OT_trackball", WM_OP_INVOKE_DEFAULT, op->ptr);
                }
                else if (drawflags & MAN_ROT_C) {
                        switch(drawflags) {
@@ -1650,7 +1650,7 @@ int BIF_do_manipulator(bContext *C, struct wmEvent *event, wmOperator *op)
                                break;
                        }
                        RNA_boolean_set_array(op->ptr, "constraint_axis", constraint_axis);
-                       WM_operator_name_call(C, "TFM_OT_rotate", WM_OP_INVOKE_REGION_WIN, op->ptr);
+                       WM_operator_name_call(C, "TFM_OT_rotate", WM_OP_INVOKE_DEFAULT, op->ptr);
                }
        }
        /* after transform, restore drawflags */