Merge pull request #4985 from OPM/feature-fix-point-manipulators-in-comparison-view

#4981 Fix well target manipulators not responding
This commit is contained in:
Jacob Støren
2019-11-05 15:42:02 +01:00
committed by GitHub
5 changed files with 45 additions and 15 deletions
+8 -5
View File
@@ -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();
}
}
//--------------------------------------------------------------------------------------------------