diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-01-30 18:29:22 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-01-30 18:29:22 +0300 |
commit | ff794b994c36d88fc1ecc0daa9af74484ae0d8cf (patch) | |
tree | 995e13140b808d00f4ac60652198952aea823f4d /source/blender/editors/sculpt_paint | |
parent | 80be34d8c91618db97d7d1c77b19183d443efedc (diff) |
Fix #19648: sculpt does not update linked duplicate multires.
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index 16c7bffd938..e91765936ed 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -2078,6 +2078,11 @@ static void sculpt_stroke_done(bContext *C, struct PaintStroke *stroke) if(ss->refkb) sculpt_key_to_mesh(ss->refkb, ob); ss->partial_redraw = 0; + + /* try to avoid calling this, only for e.g. linked duplicates now */ + if(((Mesh*)ob->data)->id.us > 1) + DAG_id_flush_update(&ob->id, OB_RECALC_DATA); + WM_event_add_notifier(C, NC_OBJECT|ND_DRAW, ob); } } |