mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 01:15:55 +08: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
@ -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…
x
Reference in New Issue
Block a user