Blender Git Commit Log

Git Commits -> Revision 7fe7835

Revision 7fe7835 by Luca Rood (master)
December 1, 2016, 14:41 (GMT)
Fix (unreported) looptri array not being recalculated in ccgDM and emDM

In ccgDM and emDM, looptri array recalculation was being handled
directly by `*DM_getLoopTriArray` (`getLoopTriArray` callback), while
`*DM_recalcLoopTri` (`recalcLoopTri` callback) was doing nothing.

This results in the array not being recalculated when other functions
that depend on the array data called the recalc function.

This moves all the recalculation code to `*DM_recalcLoopTri` and makes
`*DM_getLoopTriArray` call that.

This commit also makes a minor change to the `getNumLoopTri` function,
so that it returns the correct number without having to recalculate the
looptri array.

Reviewed By: mont29

Differential Revision: https://developer.blender.org/D2375

Commit Details:

Full Hash: 7fe7835d13de669be3b65b4e36000e8883f7117b
Parent Commit: 69a75b0
Lines Changed: +61, -59

3 Modified Paths:

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