Fix for setting the current frame when generating the display model

Made sure that current frame is set when animation/multiple frames has
been requested. The old conditions for this were not sufficient.
This commit is contained in:
Pål Hagen 2015-06-24 10:07:27 +02:00
parent eb2515b8c2
commit 355cef2ea4

View File

@ -459,7 +459,7 @@ void RimEclipseView::createDisplayModel()
// If the animation was active before recreating everything, make viewer view current frame
if (isAnimationActive || cellResult->hasResult())
if (frameModels.size() > 1 && this->hasUserRequestedAnimation())
{
m_viewer->animationControl()->setCurrentFrame(m_currentTimeStep);
}