Fix T95205: remove attribute only once
The bug was caused by a typo.
This commit is contained in:
parent
9578fe3068
commit
5257257539
Notes:
blender-bot
2023-02-14 11:25:11 +01:00
Referenced by issue #95205, Realize Instances node saved in 3.0.0 causes Memory leak when painting
|
@ -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");
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue