Merge pull request #4216 from Ultimaker/feature_adjust_zoom_to_printer_size

Adjust maximum zoom to printer size
This commit is contained in:
Diego Prado Gesto 2018-08-15 13:19:46 +02:00 committed by GitHub
commit 3d9c7f7eb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 2 deletions

View file

@ -780,7 +780,7 @@ class CuraApplication(QtApplication):
# Initialize camera
root = controller.getScene().getRoot()
camera = Camera("3d", root)
camera.setPosition(Vector(-80, 250, 700))
camera.setPosition(Vector(-80, 250, 700) * self.getBuildVolume().getDiagonalSize() / 375)
camera.setPerspective(True)
camera.lookAt(Vector(0, 0, 0))
controller.getScene().setActiveCamera("3d")