提交 d857209b 编写于 作者: K Kentaro Wada

Fix Shape.copy

上级 df0e4394
......@@ -241,14 +241,7 @@ class Shape(object):
self._highlightIndex = None
def copy(self):
shape = Shape(label=self.label, shape_type=self.shape_type)
shape.points = [copy.deepcopy(p) for p in self.points]
shape.fill = self.fill
shape.selected = self.selected
shape._closed = self._closed
shape.line_color = copy.deepcopy(self.line_color)
shape.fill_color = copy.deepcopy(self.fill_color)
return shape
return copy.deepcopy(self)
def __len__(self):
return len(self.points)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册