Revision: 26436
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=26436
Author: blendix
Date: 2010-01-30 16:29:22 +0100 (Sat, 30 Jan 2010)
Log Message:
-----------
Fix #19648: sculpt does not update linked duplicate multires.
Modified Paths:
--------------
trunk/blender/source/blender/editors/sculpt_paint/sculpt.c
Modified: trunk/blender/source/blender/editors/sculpt_paint/sculpt.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/sculpt.c 2010-01-30
15:23:17 UTC (rev 26435)
+++ trunk/blender/source/blender/editors/sculpt_paint/sculpt.c 2010-01-30
15:29:22 UTC (rev 26436)
@@ -2078,6 +2078,11 @@
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);
}
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs