[Bf-blender-cvs] [8b15b06b201] master: Fix: missing cache invalidation when there is only one spline
Jacques Lucke
noreply at git.blender.org
Wed Oct 27 11:02:55 CEST 2021
Commit: 8b15b06b201169b9f1e2eb6604711ff2fe1abdab
Author: Jacques Lucke
Date: Wed Oct 27 11:02:49 2021 +0200
Branches: master
https://developer.blender.org/rB8b15b06b201169b9f1e2eb6604711ff2fe1abdab
Fix: missing cache invalidation when there is only one spline
This fixes T92511, but there is still the more general problem
described in T92508.
===================================================================
M source/blender/blenkernel/intern/geometry_component_curve.cc
===================================================================
diff --git a/source/blender/blenkernel/intern/geometry_component_curve.cc b/source/blender/blenkernel/intern/geometry_component_curve.cc
index f30ff2a70a7..d2a404b860a 100644
--- a/source/blender/blenkernel/intern/geometry_component_curve.cc
+++ b/source/blender/blenkernel/intern/geometry_component_curve.cc
@@ -1135,6 +1135,9 @@ template<typename T> class BuiltinPointAttributeProvider : public BuiltinAttribu
MutableSpan<SplinePtr> splines = curve->splines();
if (splines.size() == 1) {
+ if (update_on_write_) {
+ update_on_write_(*splines[0]);
+ }
return std::make_unique<fn::GVMutableArray_For_GMutableSpan>(
get_mutable_span_(*splines.first()));
}
More information about the Bf-blender-cvs
mailing list