Skip to content

Commit

Permalink
fix incorrect variable check in bounding sphere calc (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
Floppy authored Dec 2, 2024
1 parent b6978ee commit 5a0d54e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mittsu/core/buffer_geometry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5a0d54e

Please sign in to comment.