[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [29510] branches/soc-2010-nicolasbishop/ source/blender/editors/sculpt_paint/sculpt.c: Bugfix: sculpting along the boundary between hidden areas and unhidden areas on a multires could leave cracks when things were unhidden .
Nicholas Bishop
nicholasbishop at gmail.com
Thu Jun 17 05:56:15 CEST 2010
Revision: 29510
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29510
Author: nicholasbishop
Date: 2010-06-17 05:56:15 +0200 (Thu, 17 Jun 2010)
Log Message:
-----------
Bugfix: sculpting along the boundary between hidden areas and unhidden areas on a multires could leave cracks when things were unhidden. Fixed with a call to stitch grids.
Modified Paths:
--------------
branches/soc-2010-nicolasbishop/source/blender/editors/sculpt_paint/sculpt.c
Modified: branches/soc-2010-nicolasbishop/source/blender/editors/sculpt_paint/sculpt.c
===================================================================
--- branches/soc-2010-nicolasbishop/source/blender/editors/sculpt_paint/sculpt.c 2010-06-17 03:49:26 UTC (rev 29509)
+++ branches/soc-2010-nicolasbishop/source/blender/editors/sculpt_paint/sculpt.c 2010-06-17 03:56:15 UTC (rev 29510)
@@ -2237,8 +2237,17 @@
ARegion *ar= CTX_wm_region(C);
if(ss->hidden_areas.first) {
+ /* Free all hidden areas */
BLI_freelistN(&ss->hidden_areas);
sculpt_area_hide_update(C);
+
+ /* Avoid cracks in multires */
+ if(ss->multires) {
+ BLI_pbvh_search_callback(ss->pbvh, NULL, NULL,
+ update_cb, NULL);
+ multires_stitch_grids(ss->ob);
+ }
+
ED_region_tag_redraw(ar);
}
return OPERATOR_FINISHED;
More information about the Bf-blender-cvs
mailing list