mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
AppFwk : Early exit if no scene is present
This commit is contained in:
parent
ab4829b2d9
commit
d5050e96b8
@ -85,6 +85,7 @@ void caf::TrackBallBasedNavigation::initializeRotationCenter()
|
|||||||
{
|
{
|
||||||
if (m_isRotCenterInitialized
|
if (m_isRotCenterInitialized
|
||||||
|| m_trackball.isNull()
|
|| m_trackball.isNull()
|
||||||
|
|| !m_viewer->currentScene()
|
||||||
|| !m_viewer->currentScene()->boundingBox().isValid())
|
|| !m_viewer->currentScene()->boundingBox().isValid())
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user