From 47be84f49e4b284f0b416e4fe4229d7ab32fb019 Mon Sep 17 00:00:00 2001 From: milek7 Date: Mon, 14 Jan 2019 00:27:51 +0100 Subject: [PATCH] radius fix --- scene.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene.cpp b/scene.cpp index a2f968cc..6c378e46 100644 --- a/scene.cpp +++ b/scene.cpp @@ -771,7 +771,7 @@ basic_section::insert( shape_node Shape ) { // re-calculate section radius, in case shape geometry extends outside the section's boundaries m_area.radius = std::max( m_area.radius, - static_cast( glm::length( m_area.center - shapedata.area.center ) + shapedata.area.radius ) ); + static_cast( glm::length( m_area.center - shapedata.area.center ) + Shape.radius() ) ); if( ( true == shapedata.translucent ) || ( shapedata.rangesquared_max <= 90000.0 )