diff --git a/source/blender/blenkernel/intern/curves_geometry.cc b/source/blender/blenkernel/intern/curves_geometry.cc index 704bbb34f49..b62cb7cafcc 100644 --- a/source/blender/blenkernel/intern/curves_geometry.cc +++ b/source/blender/blenkernel/intern/curves_geometry.cc @@ -981,7 +981,6 @@ void CurvesGeometry::tag_normals_changed() } void CurvesGeometry::tag_radii_changed() { - this->runtime->bounds_cache.tag_dirty(); } static void translate_positions(MutableSpan positions, const float3 &translation) @@ -1064,19 +1063,8 @@ bool CurvesGeometry::bounds_min_max(float3 &min, float3 &max) const return false; } - this->runtime->bounds_cache.ensure([&](Bounds &r_bounds) { - const Span positions = this->evaluated_positions(); - if (this->attributes().contains("radius")) { - const VArraySpan radii = this->attributes().lookup("radius"); - Array 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()); - } - else { - r_bounds = *bounds::min_max(positions); - } - }); + this->runtime->bounds_cache.ensure( + [&](Bounds &r_bounds) { r_bounds = *bounds::min_max(this->evaluated_positions()); }); const Bounds &bounds = this->runtime->bounds_cache.data(); min = math::min(bounds.min, min);