Blender Git Commit Log

Git Commits -> Revision e3d1a6e

Revision e3d1a6e by Ben Batt (master)
September 7, 2006, 06:44 (GMT)

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.

Commit Details:

Full Hash: e3d1a6ea9be51f249692c3934a9a80559be0bd94
SVN Revision: 8451
Parent Commit: e7d6537
Lines Changed: +26, -21

1 Modified Path:

/source/blender/blenkernel/intern/DerivedMesh.c (+26, -21) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021