Draft: Draft_Label fix label type list
This commit is contained in:
@@ -82,8 +82,8 @@ class Label(gui_base_original.Creator):
|
||||
|
||||
def setmode(self, i):
|
||||
"""Set the type of label, if it is associated to an object."""
|
||||
self.labeltype = ["Custom", "Name", "Label", "Position",
|
||||
"Length", "Area", "Volume", "Tag", "Material"][i]
|
||||
from draftobjects.label import get_label_types
|
||||
self.labeltype = get_label_types()[i]
|
||||
utils.setParam("labeltype", self.labeltype)
|
||||
|
||||
def finish(self, closed=False, cont=False):
|
||||
|
||||
Reference in New Issue
Block a user