Blender Git Loki

Git Commits -> Revision a98fc4f

Revision a98fc4f by Bastien Montagne (master)
February 15, 2015, 18:00 (GMT)
Fix T43671: Playing with Mix Factor of Data Transfer Modifier Is Overwritting Data of Base Mesh

The issue was actually affecting all data types that are not regular CDLayer ones, since by default
DerivedMesh references mesh data (verts, edges, etc. - modifying custom normals often implies
modifying edges' sarpness too).
Modfying edge/face sharpness etc. could directly affect the mesh in this case, **bad**!

So we detect whether we are copying data types that may affect non-CDlayers data, and whether
verts array of org dm is same as mesh one - in which case we copy the DM. This avoids
useless copying in most cases.

Note Edit Normals was quite obviously suffering the same issue.

Commit Details:

Full Hash: a98fc4f8f9bb887b934f999b8988727eb285b6d7
Parent Commit: 1c64543
Lines Changed: +40, -9

2 Modified Paths:

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