mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 19:29:02 +08:00
Add a clean way to disable the up axis for the translation tool
This commit is contained in:
parent
c440c4bbdb
commit
69d2db05b7
@ -5,6 +5,7 @@ from UM.Scene.Platform import Platform
|
||||
from UM.Math.Vector import Vector
|
||||
from UM.Math.Matrix import Matrix
|
||||
from UM.Resources import Resources
|
||||
from UM.Scene.ToolHandle import ToolHandle
|
||||
|
||||
from UM.Scene.BoxRenderer import BoxRenderer
|
||||
from UM.Scene.Selection import Selection
|
||||
@ -56,7 +57,7 @@ class PrinterApplication(QtApplication):
|
||||
|
||||
t = controller.getTool('TranslateTool')
|
||||
if t:
|
||||
t.setYRange(0.0, 0.0)
|
||||
t.setEnabledAxis([ToolHandle.XAxis, ToolHandle.ZAxis])
|
||||
|
||||
Selection.selectionChanged.connect(self.onSelectionChanged)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user