Blender Git Loki

Git Commits -> Revision e39af08

March 23, 2015, 11:23 (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: e39af0806ddb7cc28355a7ed6dc32833f4d9cd81
Parent Commit: 43a0987
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