From dc40a97fc1809aef4ae34c929d26680de4999b28 Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Thu, 17 Apr 2014 19:12:05 +0300 Subject: Optimize and symmetrize operators missed reset of node layer. --- source/blender/editors/sculpt_paint/sculpt.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender') diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index dbf99e96053..f5bdbfa974d 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; -- cgit v1.2.3