fix deepcopy for locked shapes
This commit is contained in:
parent
e48183ee0b
commit
4cc824526b
6 changed files with 12 additions and 6 deletions
|
|
@ -191,7 +191,8 @@ class Path(Shape, metaclass=AutoSlots):
|
|||
|
||||
def __deepcopy__(self, memo: Dict = None) -> 'Path':
|
||||
memo = {} if memo is None else memo
|
||||
new = copy.copy(self).unlock()
|
||||
new = copy.copy(self)
|
||||
Shape.unlock(new)
|
||||
new._offset = self._offset.copy()
|
||||
new._vertices = self._vertices.copy()
|
||||
new._cap = copy.deepcopy(self._cap, memo)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue