diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-04-17 20:12:05 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-04-17 20:13:58 +0400 |
commit | dc40a97fc1809aef4ae34c929d26680de4999b28 (patch) | |
tree | 818a9ae174eecbf91c5997f863b480b498e2eef1 /source/blender/editors/sculpt_paint/sculpt.c | |
parent | 38eef8deee4261f0139d29eb81584131a862bf59 (diff) |
Optimize and symmetrize operators missed reset of node layer.
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |