16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 06:29:18 +02:00

build 190116. minor bug fixes

This commit is contained in:
tmj-fstate
2019-01-16 15:04:32 +01:00
parent 6f48a6e55d
commit cfc35ee32e
4 changed files with 4 additions and 14 deletions

View File

@@ -762,7 +762,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 )