[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [50468] trunk/blender/source/blender/ editors/sculpt_paint/sculpt.c: Fix for order of creating mesh and filling in SculptSession

Sergey Sharybin sergey.vfx at gmail.com
Fri Sep 7 12:59:06 CEST 2012


Revision: 50468
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=50468
Author:   nazgul
Date:     2012-09-07 10:59:01 +0000 (Fri, 07 Sep 2012)
Log Message:
-----------
Fix for order of creating mesh and filling in SculptSession

This would use proper draw_pbvh for initially calculated PBVH.

Wasn't harmful since this flag used to be updated form update_mesh_elements,
but it's still better to have things consistent all over.

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	2012-09-07 09:44:22 UTC (rev 50467)
+++ trunk/blender/source/blender/editors/sculpt_paint/sculpt.c	2012-09-07 10:59:01 UTC (rev 50468)
@@ -3074,12 +3074,12 @@
 	/* BMESH ONLY --- at some point we should move sculpt code to use polygons only - but for now it needs tessfaces */
 	BKE_mesh_tessface_ensure(me);
 
+	if (!mmd) ss->kb = ob_get_keyblock(ob);
+	else ss->kb = NULL;
+
 	/* needs to be called after we ensure tessface */
 	dm = mesh_get_derived_final(scene, ob, CD_MASK_BAREMESH);
 
-	if (!mmd) ss->kb = ob_get_keyblock(ob);
-	else ss->kb = NULL;
-
 	if (mmd) {
 		ss->multires = mmd;
 		ss->totvert = dm->getNumVerts(dm);




More information about the Bf-blender-cvs mailing list