mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
caf::Viewer: Avoid updating boundingboxes when static models are not removed
This commit is contained in:
@@ -1358,12 +1358,15 @@ void caf::Viewer::addStaticModelOnce(cvf::Model* model, bool isForComparisonView
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void caf::Viewer::removeStaticModel(cvf::Model* model)
|
||||
{
|
||||
removeModelFromAllFrames(model);
|
||||
|
||||
m_staticModels.erase(model);
|
||||
m_comparisonStaticModels.erase(model);
|
||||
if ( m_staticModels.contains(model) || m_comparisonStaticModels.contains(model) )
|
||||
{
|
||||
removeModelFromAllFrames(model);
|
||||
|
||||
updateCachedValuesInScene();
|
||||
m_staticModels.erase(model);
|
||||
m_comparisonStaticModels.erase(model);
|
||||
|
||||
updateCachedValuesInScene();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user