Blender Git Loki

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)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021