diff --git a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/scene.C b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/scene.C index 54b6257d829ba4bf981302079ea7eaa83b1f848d..c96e36566c8a6aa0d63e77738d6e871743d0cd4e 100644 --- a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/scene.C +++ b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/scene.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2015 OpenFOAM Foundation - \\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd. + \\/ M anipulation | Copyright (C) 2015-2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -348,8 +348,6 @@ bool Foam::scene::loop(vtkRenderer* renderer) currentFrameI_++; - position_ += dPosition_; - if (position_ > (1 + 0.5*dPosition_)) { WarningInFunction @@ -357,6 +355,8 @@ bool Foam::scene::loop(vtkRenderer* renderer) << endl; } + position_ += dPosition_; + if (currentFrameI_ < nFrameTotal_) { return true;