mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
caf::Viewer: Avoid updating boundingboxes when static models are not removed
This commit is contained in:
parent
03b44fc36f
commit
c6e4641725
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user