From b558fa671551bbd04a56b79767385a25952e7688 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 1 Jul 2016 21:50:53 +1000 Subject: Add wait cursor toggling dyntopo --- source/blender/editors/sculpt_paint/sculpt.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index 37ec2d0f2dd..c436730bafd 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -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; } -- cgit v1.2.3