[Bf-blender-cvs] [38cf48f62b1] master: Fix: Missing caches in curves bounds evaluation
Hans Goudey
noreply at git.blender.org
Wed Nov 23 18:40:50 CET 2022
Commit: 38cf48f62b1a83508f6ba602148d0d05ce317ec5
Author: Hans Goudey
Date: Wed Nov 23 10:55:44 2022 -0600
Branches: master
https://developer.blender.org/rB38cf48f62b1a83508f6ba602148d0d05ce317ec5
Fix: Missing caches in curves bounds evaluation
===================================================================
M source/blender/blenkernel/intern/curves_geometry.cc
===================================================================
diff --git a/source/blender/blenkernel/intern/curves_geometry.cc b/source/blender/blenkernel/intern/curves_geometry.cc
index e4bd0527b6a..16b2bd1b3af 100644
--- a/source/blender/blenkernel/intern/curves_geometry.cc
+++ b/source/blender/blenkernel/intern/curves_geometry.cc
@@ -1020,6 +1020,7 @@ bool CurvesGeometry::bounds_min_max(float3 &min, float3 &max) const
if (this->attributes().contains("radius")) {
const VArraySpan<float> radii = this->attributes().lookup<float>("radius");
Array<float> evaluated_radii(this->evaluated_points_num());
+ this->ensure_can_interpolate_to_evaluated();
this->interpolate_to_evaluated(radii, evaluated_radii.as_mutable_span());
r_bounds = *bounds::min_max_with_radii(positions, evaluated_radii.as_span());
}
More information about the Bf-blender-cvs
mailing list