Extend the zoomrange to cater for smaller and larger buildvolumes

This commit is contained in:
fieldOfView 2017-05-11 10:55:56 +02:00
parent e187b96455
commit f23d969c23

View file

@ -619,7 +619,9 @@ class CuraApplication(QtApplication):
camera.lookAt(Vector(0, 0, 0))
controller.getScene().setActiveCamera("3d")
self.getController().getTool("CameraTool").setOrigin(Vector(0, 100, 0))
camera_tool = self.getController().getTool("CameraTool")
camera_tool.setOrigin(Vector(0, 100, 0))
camera_tool.setZoomRange(0.1, 200000)
self._camera_animation = CameraAnimation.CameraAnimation()
self._camera_animation.setCameraTool(self.getController().getTool("CameraTool"))