[Bf-blender-cvs] CVS commit: blender/source/blender/blenkernel/intern DerivedMesh.c
Ben Batt
benbatt at gmail.com
Thu Sep 7 08:44:25 CEST 2006
artificer (Ben Batt) 2006/09/07 08:44:25 CEST
Modified files:
blender/source/blender/blenkernel/intern DerivedMesh.c
Log:
Two bugfixes.
My commit to fix weightpaint display (revision 1.125 of DerivedMesh.c) broke
normal recalculation for meshes which have only deform modifiers applied.
This commit fixes that by adding calls to CDDM_calc_normals in the appropriate
places.
The DM_from_template and DM_init functions checked for numVerts > 0 before
initialising the DerivedMesh's custom data layers. This was something of a
hack intended to allow DerivedMesh creation functions to initialise default
function pointers without initialising custom data layers (by passing a 0 for
the numVerts parameter). It is unneeded now that DM_init_funcs is present, and
causes memory deallocation warnings later on when the number of vertices
really is 0, so it has been removed.
Revision Changes Path
1.129 +28 -23 blender/source/blender/blenkernel/intern/DerivedMesh.c
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/blenkernel/intern/DerivedMesh.c.diff?r1=1.128&r2=1.129&cvsroot=bf-blender>
More information about the Bf-blender-cvs
mailing list