fix: force float conversion

This commit is contained in:
Fabien Castan 2022-06-02 14:15:18 +02:00
parent 8cfc5cbb45
commit 7b467b649d

View file

@ -360,7 +360,7 @@ class ViewpointWrapper(QObject):
return None
focalLength = self.solvedIntrinsics["focalLength"]
sensorHeight = self.solvedIntrinsics["sensorHeight"]
return 2.0 * math.atan(sensorHeight / (2.0 * float(focalLength))) * 180 / math.pi
return 2.0 * math.atan(float(sensorHeight) / (2.0 * float(focalLength))) * 180.0 / math.pi
@Property(type=QUrl, notify=denseSceneParamsChanged)
def undistortedImageSource(self):