fixed an annoying error message about the 'focalLength' parameter when duplicating the tab of a scene made in Blender

metadata
Wenzel Jakob 2013-01-27 23:26:00 -05:00
parent b3bde09b8a
commit f9733089fd
1 changed files with 1 additions and 0 deletions

View File

@ -260,6 +260,7 @@ void PerspectiveCamera::configure() {
SLog(EError, "Could not parse the focal length (must be of the form "
"<x>mm, where <x> is a positive integer)!");
m_properties.removeProperty("focalLength");
setDiagonalFov(2 * 180/M_PI* std::atan(std::sqrt((Float) (36*36+24*24)) / (2*value)));
}
}