Fix T86458: Simple Subdivision node does not preserve vertex groups

Differential Revision: https://developer.blender.org/D10683
This commit is contained in:
Rahul Chaudhary 2021-03-11 11:56:40 +01:00 committed by Jacques Lucke
parent 28e83bca9d
commit 74f3edc343
Notes: blender-bot 2023-04-14 09:18:04 +02:00
Referenced by issue #86458, Simple Subdivision node doesnt preserve vertex group
1 changed files with 2 additions and 1 deletions

View File

@ -91,7 +91,8 @@ static void geo_node_subdivide_exec(GeoNodeExecParams params)
Mesh *mesh_out = BKE_subdiv_to_mesh(subdiv, &mesh_settings, mesh_in);
BKE_mesh_calc_normals(mesh_out);
geometry_set.replace_mesh(mesh_out);
MeshComponent &mesh_component = geometry_set.get_component_for_write<MeshComponent>();
mesh_component.replace_mesh_but_keep_vertex_group_names(mesh_out);
BKE_subdiv_free(subdiv);