Add wait cursor toggling dyntopo
authorCampbell Barton <ideasman42@gmail.com>
Fri, 1 Jul 2016 11:50:53 +0000 (21:50 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 1 Jul 2016 11:50:53 +0000 (21:50 +1000)
source/blender/editors/sculpt_paint/sculpt.c

index 37ec2d0f2dd49a4bedc405bd972569f76567a732..c436730bafd8950f1bed469cf8335e091e9d8b34 100644 (file)
@@ -5092,6 +5092,8 @@ static int sculpt_dynamic_topology_toggle_exec(bContext *C, wmOperator *UNUSED(o
        Object *ob = CTX_data_active_object(C);
        SculptSession *ss = ob->sculpt;
 
+       WM_cursor_wait(1);
+
        if (ss->bm) {
                sculpt_undo_push_begin("Dynamic topology disable");
                sculpt_undo_push_node(ob, NULL, SCULPT_UNDO_DYNTOPO_END);
@@ -5104,6 +5106,8 @@ static int sculpt_dynamic_topology_toggle_exec(bContext *C, wmOperator *UNUSED(o
        }
        sculpt_undo_push_end(C);
 
+       WM_cursor_wait(0);
+
        return OPERATOR_FINISHED;
 }