Commit 44a6cc8f authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: runTime pp - new zoom entry now optional

parent 22cf7b84
......@@ -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)
);
}
}
......
Markdown is supported
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