Fix: missing cache invalidation when there is only one spline

This fixes T92511, but there is still the more general problem
described in T92508.
This commit is contained in:
Jacques Lucke 2021-10-27 11:02:49 +02:00
parent 4d605ef2f4
commit 8b15b06b20
Notes: blender-bot 2023-02-14 11:29:52 +01:00
Referenced by issue #92511, Geometry Nodes: tilt still ignored on resampled curve offset by normal
1 changed files with 3 additions and 0 deletions

View File

@ -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()));
}