mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 15:33:16 +08:00
Prevent crash when camera tool was not found
This commit is contained in:
parent
ac98caee54
commit
773edfd533
@ -886,6 +886,7 @@ class CuraApplication(QtApplication):
|
|||||||
|
|
||||||
# Initialize camera tool
|
# Initialize camera tool
|
||||||
camera_tool = controller.getTool("CameraTool")
|
camera_tool = controller.getTool("CameraTool")
|
||||||
|
if camera_tool:
|
||||||
camera_tool.setOrigin(Vector(0, 100, 0))
|
camera_tool.setOrigin(Vector(0, 100, 0))
|
||||||
camera_tool.setZoomRange(0.1, 2000)
|
camera_tool.setZoomRange(0.1, 2000)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user