mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-19 11:09:19 +02:00
radius fix
This commit is contained in:
@@ -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<float>(
|
||||
m_area.radius,
|
||||
static_cast<float>( glm::length( m_area.center - shapedata.area.center ) + shapedata.area.radius ) );
|
||||
static_cast<float>( glm::length( m_area.center - shapedata.area.center ) + Shape.radius() ) );
|
||||
|
||||
if( ( true == shapedata.translucent )
|
||||
|| ( shapedata.rangesquared_max <= 90000.0 )
|
||||
|
||||
Reference in New Issue
Block a user