From 3c6e94ea81c1b56ee6efdf0bd28f5df809beede8 Mon Sep 17 00:00:00 2001 From: Diego Prado Gesto Date: Fri, 23 Feb 2018 13:08:15 +0100 Subject: [PATCH] CURA-4968 Add the support eraser cube to the bottom of the buildplate when the automatic drop models preference is OFF --- plugins/SupportEraser/SupportEraser.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/SupportEraser/SupportEraser.py b/plugins/SupportEraser/SupportEraser.py index 9e2d41014d..4e55702687 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().getBuildPlateModel().activeBuildPlate