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:
authorJacques Lucke <jacques@blender.org>2021-10-27 12:02:49 +0300
committerJacques Lucke <jacques@blender.org>2021-10-27 12:02:49 +0300
commit8b15b06b201169b9f1e2eb6604711ff2fe1abdab (patch)
treec3062e1c7174da3b9a0f70de2685ab2f2549db96 /source/blender
parent4d605ef2f413e8ab484743218f0d0517138513d5 (diff)
Fix: missing cache invalidation when there is only one spline
This fixes T92511, but there is still the more general problem described in T92508.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/blenkernel/intern/geometry_component_curve.cc3
1 files changed, 3 insertions, 0 deletions
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()));
}