fix deepcopy for locked shapes
This commit is contained in:
parent
e48183ee0b
commit
4cc824526b
6 changed files with 12 additions and 6 deletions
|
|
@ -131,7 +131,8 @@ class Ellipse(Shape, metaclass=AutoSlots):
|
|||
|
||||
def __deepcopy__(self, memo: Dict = None) -> 'Ellipse':
|
||||
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._radii = self._radii.copy()
|
||||
new._annotations = copy.deepcopy(self._annotations)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue