Add difficult in Shape
Add in shape Add in copy shape
This commit is contained in:
parent
f0f1bb2b5a
commit
0dae300a61
@ -36,11 +36,12 @@ class Shape(object):
|
||||
point_size = 8
|
||||
scale = 1.0
|
||||
|
||||
def __init__(self, label=None, line_color=None):
|
||||
def __init__(self, label=None, line_color=None,difficult = False):
|
||||
self.label = label
|
||||
self.points = []
|
||||
self.fill = False
|
||||
self.selected = False
|
||||
self.difficult = difficult
|
||||
|
||||
self._highlightIndex = None
|
||||
self._highlightMode = self.NEAR_VERTEX
|
||||
@ -171,6 +172,7 @@ class Shape(object):
|
||||
shape.line_color = self.line_color
|
||||
if self.fill_color != Shape.fill_color:
|
||||
shape.fill_color = self.fill_color
|
||||
shape.difficult = self.difficult
|
||||
return shape
|
||||
|
||||
def __len__(self):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user