mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
cafViewer: Add static model(s) to mainScene as well.
This commit is contained in:
@@ -872,6 +872,11 @@ void caf::Viewer::removeModelFromAllFrames(cvf::Model* model)
|
||||
|
||||
scene->removeModel(model);
|
||||
}
|
||||
|
||||
if (m_mainScene.notNull())
|
||||
{
|
||||
m_mainScene->removeModel(model);
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -885,7 +890,12 @@ void caf::Viewer::appendModelToAllFrames(cvf::Model* model)
|
||||
|
||||
scene->addModel(model);
|
||||
}
|
||||
}
|
||||
|
||||
if (m_mainScene.notNull())
|
||||
{
|
||||
m_mainScene->addModel(model);
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user