Python: Fix crash in project.close().

This commit is contained in:
Kristian Bendiksen 2023-09-11 13:47:28 +02:00 committed by Magne Sjaastad
parent a36100e4fb
commit 5ecf621357

View File

@ -884,9 +884,13 @@ void RimProject::scheduleCreateDisplayModelAndRedrawAllViews()
}
}
for ( auto seisview : activeOilField()->seismicViewCollection()->views() )
auto seismicViewCollection = activeOilField()->seismicViewCollection();
if ( seismicViewCollection )
{
seisview->scheduleCreateDisplayModelAndRedraw();
for ( auto seisview : seismicViewCollection->views() )
{
seisview->scheduleCreateDisplayModelAndRedraw();
}
}
}