fixed an annoying error message about the 'focalLength' parameter when duplicating the tab of a scene made in Blender
parent
b3bde09b8a
commit
f9733089fd
|
@ -260,6 +260,7 @@ void PerspectiveCamera::configure() {
|
||||||
SLog(EError, "Could not parse the focal length (must be of the form "
|
SLog(EError, "Could not parse the focal length (must be of the form "
|
||||||
"<x>mm, where <x> is a positive integer)!");
|
"<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)));
|
setDiagonalFov(2 * 180/M_PI* std::atan(std::sqrt((Float) (36*36+24*24)) / (2*value)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue