[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [38183] branches/soc-2011-onion/source/ blender/editors/space_view3d/view3d_draw.c: Vertex Weights Export Tool

Antony Riakiotakis kalast at gmail.com
Thu Jul 7 11:25:08 CEST 2011


Revision: 38183
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=38183
Author:   psy-fi
Date:     2011-07-07 09:25:08 +0000 (Thu, 07 Jul 2011)
Log Message:
-----------
Vertex Weights Export Tool
=====================
*Vertex Weight Mask not always included for final derived mesh, causing crashes. I had to explicitly set the flag. This prompted me to only include the masks I needed too. Many thanks to Geoffrey Bantle for his guidance!

Modified Paths:
--------------
    branches/soc-2011-onion/source/blender/editors/space_view3d/view3d_draw.c

Modified: branches/soc-2011-onion/source/blender/editors/space_view3d/view3d_draw.c
===================================================================
--- branches/soc-2011-onion/source/blender/editors/space_view3d/view3d_draw.c	2011-07-07 08:09:58 UTC (rev 38182)
+++ branches/soc-2011-onion/source/blender/editors/space_view3d/view3d_draw.c	2011-07-07 09:25:08 UTC (rev 38183)
@@ -2702,7 +2702,7 @@
 	int bwinx, bwiny;
 	rcti brect;
 	int zbufbackup = v3d->zbuf;
-	DerivedMesh *dm = mesh_get_derived_final(scene, ob, scene->customdata_mask);
+	DerivedMesh *dm = mesh_get_derived_final(scene, ob, CD_MASK_MVERT | CD_MASK_MDEFORMVERT | CD_MASK_MFACE);
 	int numOfQuads = 0;
 	MDeformVert *dw;
 	ImBuf *ibuf;




More information about the Bf-blender-cvs mailing list