mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -06:00
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
This commit is contained in:
parent
8dc6353738
commit
44ab89724e
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue