Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2010-01-30 18:29:22 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2010-01-30 18:29:22 +0300
commitff794b994c36d88fc1ecc0daa9af74484ae0d8cf (patch)
tree995e13140b808d00f4ac60652198952aea823f4d /source/blender/editors/sculpt_paint
parent80be34d8c91618db97d7d1c77b19183d443efedc (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.c5
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);
}
}