shapes: unlock before modifying during deepcopy

This commit is contained in:
Jan Petykiewicz 2019-12-13 21:16:43 -08:00
commit 25c9e591cb
6 changed files with 12 additions and 6 deletions

View file

@ -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,