mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-17 02:55:59 +08:00
Extend the zoomrange to cater for smaller and larger buildvolumes
This commit is contained in:
parent
e187b96455
commit
f23d969c23
@ -619,7 +619,9 @@ class CuraApplication(QtApplication):
|
|||||||
camera.lookAt(Vector(0, 0, 0))
|
camera.lookAt(Vector(0, 0, 0))
|
||||||
controller.getScene().setActiveCamera("3d")
|
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 = CameraAnimation.CameraAnimation()
|
||||||
self._camera_animation.setCameraTool(self.getController().getTool("CameraTool"))
|
self._camera_animation.setCameraTool(self.getController().getTool("CameraTool"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user