mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Lower camera default position by 70mm
The previous default position was aimed at 100mm above the build plate. This is taller than most models that people load into Cura. It's now aimed at 30mm. Models up to 50mm are way more common to print, so this brings it right in the butter zone for most people, hopefully. Fixes #9251.
This commit is contained in:
parent
d24bbc4071
commit
0c9175d7f7
1 changed files with 2 additions and 2 deletions
|
@ -894,14 +894,14 @@ class CuraApplication(QtApplication):
|
||||||
diagonal = self.getBuildVolume().getDiagonalSize()
|
diagonal = self.getBuildVolume().getDiagonalSize()
|
||||||
if diagonal < 1: #No printer added yet. Set a default camera distance for normal-sized printers.
|
if diagonal < 1: #No printer added yet. Set a default camera distance for normal-sized printers.
|
||||||
diagonal = 375
|
diagonal = 375
|
||||||
camera.setPosition(Vector(-80, 250, 700) * diagonal / 375)
|
camera.setPosition(Vector(-80, 180, 700) * diagonal / 375)
|
||||||
camera.lookAt(Vector(0, 0, 0))
|
camera.lookAt(Vector(0, 0, 0))
|
||||||
controller.getScene().setActiveCamera("3d")
|
controller.getScene().setActiveCamera("3d")
|
||||||
|
|
||||||
# Initialize camera tool
|
# Initialize camera tool
|
||||||
camera_tool = controller.getTool("CameraTool")
|
camera_tool = controller.getTool("CameraTool")
|
||||||
if camera_tool:
|
if camera_tool:
|
||||||
camera_tool.setOrigin(Vector(0, 100, 0))
|
camera_tool.setOrigin(Vector(0, 30, 0))
|
||||||
camera_tool.setZoomRange(0.1, 2000)
|
camera_tool.setZoomRange(0.1, 2000)
|
||||||
|
|
||||||
# Initialize camera animations
|
# Initialize camera animations
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue