[Bf-blender-cvs] [b558fa6] master: Add wait cursor toggling dyntopo

Campbell Barton noreply at git.blender.org
Fri Jul 1 13:50:15 CEST 2016


Commit: b558fa671551bbd04a56b79767385a25952e7688
Author: Campbell Barton
Date:   Fri Jul 1 21:50:53 2016 +1000
Branches: master
https://developer.blender.org/rBb558fa671551bbd04a56b79767385a25952e7688

Add wait cursor toggling dyntopo

===================================================================

M	source/blender/editors/sculpt_paint/sculpt.c

===================================================================

diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index 37ec2d0..c436730 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;
 }




More information about the Bf-blender-cvs mailing list