From 44ab89724eda9a012ca342db5d1f048132346401 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Fri, 15 Jan 2016 15:18:16 +0100 Subject: [PATCH] ConvexHullDecorator is now correctly duplicated The deepcopy of convex hull decorator now returns an empty (new) ConvexHulldecorator object This ensures that the init is correctly called. CURA-665 --- cura/ConvexHullDecorator.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cura/ConvexHullDecorator.py b/cura/ConvexHullDecorator.py index 1f1bc5db34..f16c2a295e 100644 --- a/cura/ConvexHullDecorator.py +++ b/cura/ConvexHullDecorator.py @@ -18,7 +18,12 @@ class ConvexHullDecorator(SceneNodeDecorator): self._profile = None Application.getInstance().getMachineManager().activeProfileChanged.connect(self._onActiveProfileChanged) self._onActiveProfileChanged() - + + ## Force that a new (empty) object is created upon copy. + def __deepcopy__(self, memo): + copy = ConvexHullDecorator() + return copy + def getConvexHull(self): return self._convex_hull