caf::Viewer: Avoid updating boundingboxes when static models are not removed

This commit is contained in:
Jacob Støren 2019-11-04 17:06:21 +01:00
parent 03b44fc36f
commit c6e4641725

View File

@ -1357,6 +1357,8 @@ void caf::Viewer::addStaticModelOnce(cvf::Model* model, bool isForComparisonView
///
//--------------------------------------------------------------------------------------------------
void caf::Viewer::removeStaticModel(cvf::Model* model)
{
if ( m_staticModels.contains(model) || m_comparisonStaticModels.contains(model) )
{
removeModelFromAllFrames(model);
@ -1365,6 +1367,7 @@ void caf::Viewer::removeStaticModel(cvf::Model* model)
updateCachedValuesInScene();
}
}
//--------------------------------------------------------------------------------------------------
///