diff options
author | Jack Ha <jackha@gmail.com> | 2018-02-27 12:24:56 +0300 |
---|---|---|
committer | Jack Ha <jackha@gmail.com> | 2018-02-27 12:24:56 +0300 |
commit | 22cf5abec215b78f02feaaafba51d00c430e407f (patch) | |
tree | 7f84dea634b6f3b15cbec125571aad136a1ee78b /plugins/SupportEraser | |
parent | ccd4bb285beb44d792e6ee56a8aaf0e71d66ffa7 (diff) | |
parent | f98b60f549574131dca41e18996491a21ef2c8ec (diff) |
Merge branch 'master' into refactoring_machine_manager
Diffstat (limited to 'plugins/SupportEraser')
-rw-r--r-- | plugins/SupportEraser/SupportEraser.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/SupportEraser/SupportEraser.py b/plugins/SupportEraser/SupportEraser.py index ddc6b96c3a..8b3ad0f4dd 100644 --- a/plugins/SupportEraser/SupportEraser.py +++ b/plugins/SupportEraser/SupportEraser.py @@ -1,6 +1,6 @@ # Copyright (c) 2018 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. - +from UM.Math.Vector import Vector from UM.Tool import Tool from PyQt5.QtCore import Qt, QUrl from UM.Application import Application @@ -41,6 +41,9 @@ class SupportEraser(Tool): mesh = MeshBuilder() mesh.addCube(10,10,10) node.setMeshData(mesh.build()) + # Place the cube in the platform. Do it manually so it works if the "automatic drop models" is OFF + move_vector = Vector(0, 5, 0) + node.setPosition(move_vector) active_build_plate = Application.getInstance().getMultiBuildPlateModel().activeBuildPlate |