Skip to content
Snippets Groups Projects
Commit 6508c4e9 authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: runTime pp - new zoom entry now optional

parent 39e032ae
Branches
Tags
No related merge requests found
......@@ -103,7 +103,17 @@ void Foam::functionObjects::runTimePostPro::scene::readCamera
}
}
cameraZoom_ = Function1<scalar>::New("zoom", dict);
if (dict.found("zoom"))
{
cameraZoom_ = Function1<scalar>::New("zoom", dict);
}
else
{
cameraZoom_.reset
(
new Function1Types::Constant<scalar>("zoom", 1.0)
);
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment