shapes: unlock before modifying during deepcopy
This commit is contained in:
parent
f2e6548d21
commit
25c9e591cb
6 changed files with 12 additions and 6 deletions
|
|
@ -165,10 +165,11 @@ class Arc(Shape):
|
|||
|
||||
def __deepcopy__(self, memo: Dict = None) -> 'Arc':
|
||||
memo = {} if memo is None else memo
|
||||
new = copy.copy(self)
|
||||
new = copy.copy(self).unlock()
|
||||
new._offset = self._offset.copy()
|
||||
new._radii = self._radii.copy()
|
||||
new._angles = self._angles.copy()
|
||||
new.locked = self.locked
|
||||
return new
|
||||
|
||||
def to_polygons(self,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue