Fix #113734: Delete anonymous attributes in result geometry #113738

Closed
Iliya Katushenock wants to merge 1 commits from mod_moder:fix_del_anon_attr into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 8 additions and 0 deletions

View File

@ -663,6 +663,14 @@ bke::GeometrySet execute_geometry_nodes_on_geometry(
}
}
for (bke::GeometryComponent::Type type : output_geometry.gather_component_types(true, true)) {
bke::GeometryComponent &component = output_geometry.get_component_for_write(type);
if (std::optional<bke::MutableAttributeAccessor> attributes = component.attributes_for_write())
{
attributes->remove_anonymous();
}
}
return output_geometry;
}