cafViewer: Add static model(s) to mainScene as well.

This commit is contained in:
Jacob Støren
2015-11-22 15:04:09 +01:00
parent 6c58305565
commit 4d0c1d17b4

View File

@@ -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);
}
}
//--------------------------------------------------------------------------------------------------
///