Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-06-18 01:22:09 +0300
committerHans Goudey <h.goudey@me.com>2021-06-18 01:22:09 +0300
commit94c4a9995e43a5921adb33da80591e0c4cf3fe9b (patch)
treea5f1bca06980e2dd399256212e844b91140d3a09 /source/blender/blenkernel/intern/geometry_component_curve.cc
parent4b673ebb990684af4a429d963a1026ddf3f2552f (diff)
Fix T89233: Incorrect attribute remove warning for curves
The curve attribute delete function didn't return whether it was successful or not.
Diffstat (limited to 'source/blender/blenkernel/intern/geometry_component_curve.cc')
-rw-r--r--source/blender/blenkernel/intern/geometry_component_curve.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/geometry_component_curve.cc b/source/blender/blenkernel/intern/geometry_component_curve.cc
index bc85305fea8..b5c49dbb8b2 100644
--- a/source/blender/blenkernel/intern/geometry_component_curve.cc
+++ b/source/blender/blenkernel/intern/geometry_component_curve.cc
@@ -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;
}