Blender Git Loki

Git Commits -> Revision 5d044d6

March 26, 2015, 13:13 (GMT)
Ugly hack for caching code to deal with quirky modifier stack behavior.

CustomData layers are pruned by the CDDM_copy function when they have
CD_FLAG_NOCOPY set. This is based on later modifiers in the stack, which
can specify that they require certain data layers - but the caching
modifier itself should store only what is needed by later modifiers.
It means we cannot easily keep a full copy of the DM in the cache
modifier to writing into caches later.

For now the hackish solution is to temporarily disable NOCOPY flags when
copying the DM. This is really not nice and needs a better solution.

Commit Details:

Full Hash: 5d044d62e2a05b541670a8d0ecfd7bf47fe1d44b
Parent Commit: 80e541e
Lines Changed: +77, -2

1 Modified Path:

/source/blender/modifiers/intern/MOD_cache.c (+77, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021