Blender Git Commit Log

Git Commits -> Revision a1c7cab

Revision a1c7cab by Hans Goudey (master)
February 2, 2021, 15:20 (GMT)
Fix T85155: Vertex groups from object don't transfer to next nodes modifier

Because the the vertex group name-to-index map is stored in the object
rather than object data, the object info node has to replace the
map when it replaces the mesh component on the geometry set with mesh
data from another object.

This normally works fine as a way to use the vertex groups from the
input mesh, but when passing this mesh to the next modifier, the entire
mesh component was replaced, removing the vertex group name map.

This commit adds a function to replace only the mesh data in mesh
component, uses it in the modifier code, and updates the relevant
comments.

Note that the fact that vertex group names are stored in object data
is a legacy design decision that should be reevaluated at some point.

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

Commit Details:

Full Hash: a1c7cab06cc5473273a711200b6b5d0a96fb1c21
Parent Commit: 9e0c876
Lines Changed: +40, -14

3 Modified Paths:

/source/blender/blenkernel/BKE_geometry_set.hh (+2, -0) (Diff)
/source/blender/blenkernel/intern/DerivedMesh.cc (+21, -14) (Diff)
/source/blender/blenkernel/intern/geometry_set.cc (+17, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021