mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-09 07:56:22 -06:00
Add a clean way to disable the up axis for the translation tool
This commit is contained in:
parent
c440c4bbdb
commit
69d2db05b7
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue