mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: runTime pp - new zoom entry now optional
This commit is contained in:
@ -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)
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user