[Bf-blender-cvs] [52572575398] blender-v3.1-release: Fix T95205: remove attribute only once
Jacques Lucke
noreply at git.blender.org
Mon Jan 31 17:43:16 CET 2022
Commit: 525725753981a75b53f27b2454bfa4b6bafbb7ce
Author: Jacques Lucke
Date: Mon Jan 31 17:40:55 2022 +0100
Branches: blender-v3.1-release
https://developer.blender.org/rB525725753981a75b53f27b2454bfa4b6bafbb7ce
Fix T95205: remove attribute only once
The bug was caused by a typo.
===================================================================
M source/blender/geometry/intern/realize_instances.cc
===================================================================
diff --git a/source/blender/geometry/intern/realize_instances.cc b/source/blender/geometry/intern/realize_instances.cc
index 4022794d53f..18dd74cb688 100644
--- a/source/blender/geometry/intern/realize_instances.cc
+++ b/source/blender/geometry/intern/realize_instances.cc
@@ -1269,7 +1269,7 @@ static void remove_id_attribute_from_instances(GeometrySet &geometry_set)
{
geometry_set.modify_geometry_sets([&](GeometrySet &sub_geometry) {
if (sub_geometry.has<InstancesComponent>()) {
- InstancesComponent &component = geometry_set.get_component_for_write<InstancesComponent>();
+ InstancesComponent &component = sub_geometry.get_component_for_write<InstancesComponent>();
component.attributes().remove("id");
}
});
More information about the Bf-blender-cvs
mailing list