bugfix [#25230] Quick extrude Ctrl-LMB : wrong behaviour of 'RotateSource' option.
[blender-staging.git] / source / blender / editors / space_view3d / view3d_buttons.c
index 1c400ee1ff8bb34005c5949949238b95c2a9436e..0352996484ac7b0b7f9fe71e16bb7aaf86516367 100644 (file)
@@ -1392,26 +1392,6 @@ static void view3d_panel_bonesketch_spaces(const bContext *C, Panel *pa)
        uiBlockEndAlign(block);
 }
 
-/* op->invoke */
-static void redo_cb(bContext *C, void *arg_op, void *arg2)
-{
-       wmOperator *lastop= arg_op;
-       
-       if(lastop) {
-               int retval;
-               
-               if (G.f & G_DEBUG)
-                       printf("operator redo %s\n", lastop->type->name);
-               ED_undo_pop(C);
-               retval= WM_operator_repeat(C, lastop);
-               if((retval & OPERATOR_FINISHED)==0) {
-                       if (G.f & G_DEBUG)
-                               printf("operator redo failed %s\n", lastop->type->name);
-                       ED_undo_redo(C);
-               }
-       }
-}
-
 static void view3d_panel_operator_redo(const bContext *C, Panel *pa)
 {
        wmWindowManager *wm= CTX_wm_manager(C);
@@ -1429,7 +1409,7 @@ static void view3d_panel_operator_redo(const bContext *C, Panel *pa)
        if(op==NULL)
                return;
        
-       uiBlockSetFunc(block, redo_cb, op, NULL);
+       uiBlockSetFunc(block, ED_undo_operator_repeat_cb, op, NULL);
        
        if(!op->properties) {
                IDPropertyTemplate val = {0};