From 6508c4e9b77d34d2eb9bae63e8185be54d783187 Mon Sep 17 00:00:00 2001 From: Andrew Heather Date: Tue, 6 Dec 2016 09:17:54 +0000 Subject: [PATCH] ENH: runTime pp - new zoom entry now optional --- .../graphics/runTimePostProcessing/scene.C | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/functionObjects/graphics/runTimePostProcessing/scene.C b/src/functionObjects/graphics/runTimePostProcessing/scene.C index 95ab189f5f..4af8b0d0e8 100644 --- a/src/functionObjects/graphics/runTimePostProcessing/scene.C +++ b/src/functionObjects/graphics/runTimePostProcessing/scene.C @@ -103,7 +103,17 @@ void Foam::functionObjects::runTimePostPro::scene::readCamera } } - cameraZoom_ = Function1::New("zoom", dict); + if (dict.found("zoom")) + { + cameraZoom_ = Function1::New("zoom", dict); + } + else + { + cameraZoom_.reset + ( + new Function1Types::Constant("zoom", 1.0) + ); + } }