Fix #19648: sculpt does not update linked duplicate multires.

This commit is contained in:
Brecht Van Lommel
2010-01-30 15:29:22 +00:00
parent 80be34d8c9
commit ff794b994c

View File

@@ -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);
}
}