From a0f9dff5eeb7b2005f8c286ce7159ab34fc352fe Mon Sep 17 00:00:00 2001 From: James Smith Date: Mon, 2 Dec 2024 12:29:25 +0000 Subject: [PATCH] fix incorrect variable check in bounding sphere calc --- lib/mittsu/core/buffer_geometry.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mittsu/core/buffer_geometry.rb b/lib/mittsu/core/buffer_geometry.rb index 87bb1243..76022daa 100644 --- a/lib/mittsu/core/buffer_geometry.rb +++ b/lib/mittsu/core/buffer_geometry.rb @@ -181,7 +181,7 @@ def compute_bounding_sphere @bounding_sphere.radius = ::Math.sqrt(max_radius_sq) - if @bounding_radius.nan? + if @bounding_sphere.radius.nan? puts 'ERROR: Mittsu::BufferGeometry#computeBoundingSphere: Computed radius is NaN. The "position" attribute is likely to have NaN values.' end end