[Bf-blender-cvs] [dc40a97] master: Optimize and symmetrize operators missed reset of node layer.
Antony Riakiotakis
noreply at git.blender.org
Thu Apr 17 18:14:30 CEST 2014
Commit: dc40a97fc1809aef4ae34c929d26680de4999b28
Author: Antony Riakiotakis
Date: Thu Apr 17 19:12:05 2014 +0300
https://developer.blender.org/rBdc40a97fc1809aef4ae34c929d26680de4999b28
Optimize and symmetrize operators missed reset of node layer.
===================================================================
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 dbf99e9..f5bdbfa 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -5013,6 +5013,7 @@ static int sculpt_optimize_exec(bContext *C, wmOperator *UNUSED(op))
Object *ob = CTX_data_active_object(C);
sculpt_pbvh_clear(ob);
+ sculpt_dyntopo_node_layers_reset(ob->sculpt);
WM_event_add_notifier(C, NC_OBJECT | ND_DRAW, ob);
return OPERATOR_FINISHED;
@@ -5071,6 +5072,7 @@ static int sculpt_symmetrize_exec(bContext *C, wmOperator *UNUSED(op))
/* Redraw */
sculpt_pbvh_clear(ob);
+ sculpt_dyntopo_node_layers_reset(ss);
WM_event_add_notifier(C, NC_OBJECT | ND_DRAW, ob);
return OPERATOR_FINISHED;
More information about the Bf-blender-cvs
mailing list