Fix T89233: Incorrect attribute remove warning for curves
The curve attribute delete function didn't return whether it was successful or not.
This commit is contained in:
parent
4b673ebb99
commit
94c4a9995e
Notes:
blender-bot
2023-02-14 00:06:52 +01:00
Referenced by issue #89233, Geometry Nodes: Remove Attribute throws wrong warning for Curves
|
@ -1011,9 +1011,10 @@ class DynamicPointAttributeProvider final : public DynamicAttributesProvider {
|
|||
return false;
|
||||
}
|
||||
|
||||
/* Reuse the boolean for all splines; we expect all splines to have the same attributes. */
|
||||
bool layer_freed = false;
|
||||
for (SplinePtr &spline : curve->splines()) {
|
||||
spline->attributes.remove(attribute_name);
|
||||
layer_freed = spline->attributes.remove(attribute_name);
|
||||
}
|
||||
return layer_freed;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue