Blender Git Loki

Git Commits -> Revision ff4959e

Revision ff4959e by Jacques Lucke (master)
November 4, 2021, 13:41 (GMT)
Fix T92649: incorrect copying of anonymous attributes in many places

Many modifiers and other places use `CustomData_copy_data` to copy data
between different meshes. This function assumes that assumes that the
source and destination `CustomData` objects are "compatible" in some way.
Usually modifiers use `CustomData_copy` to create a compatible new
`CustomData` on the new mesh. The issue was that the optimization I added
for anonymous attributes broke this compatibility. It avoided copying some
attributes when they are no longer used.

This lead to attributes being copied incorrectly.
D13083 contains ideas for how this could be fixed more generally.
For now I just removed the optimization.

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

Commit Details:

Full Hash: ff4959eeaa5368d79f15d482da6576a1ccba5dca
Parent Commit: b516263
Lines Changed: +0, -5

1 Modified Path:

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