diff --git a/3d-viewer/3d_rendering/3d_render_raytracing/shapes3D/cbbox.cpp b/3d-viewer/3d_rendering/3d_render_raytracing/shapes3D/cbbox.cpp index 00ba7debad..fa661db1fb 100644 --- a/3d-viewer/3d_rendering/3d_render_raytracing/shapes3D/cbbox.cpp +++ b/3d-viewer/3d_rendering/3d_render_raytracing/shapes3D/cbbox.cpp @@ -111,7 +111,8 @@ void CBBOX::Union( const SFVEC3F &aPoint ) void CBBOX::Union( const CBBOX &aBBox ) { - wxASSERT( aBBox.IsInitialized() ); + if( !aBBox.IsInitialized() ) + return; // get the minimun value between the added bounding box and the existent bounding box m_min.x = fmin( m_min.x, aBBox.m_min.x );