Blender Git Commit Log

Git Commits -> Revision 95701b0

Revision 95701b0 by Luca Rood (surface-deform-modifier)
November 25, 2016, 16:49 (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 are called. These functions, such as
`getNumLoopTris`, call `recalcLoopTri` to ensure the data is up to date,
but in the case of CCGDerivedMesh that was doing nothing.

This moves all the recalculation code to `ccgDM_recalcLoopTri` and makes
`ccgDM_getLoopTriArray` call that.

Reviewed By: mont29

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

Commit Details:

Full Hash: 95701b0b04a2e4a3275a272b1768298ed92852e2
Parent Commit: 4d3d2d0
Lines Changed: +59, -58

3 Modified Paths:

/source/blender/blenkernel/intern/DerivedMesh.c (+1, -0) (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