From 69d2db05b7d4f97144d4fe7dc7e6575300bc9bbf Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Fri, 6 Mar 2015 16:42:45 +0100 Subject: [PATCH] Add a clean way to disable the up axis for the translation tool --- PrinterApplication.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PrinterApplication.py b/PrinterApplication.py index 18086fcff1..2e24eb31b5 100644 --- a/PrinterApplication.py +++ b/PrinterApplication.py @@ -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)