Draft: Draft_Label fix label type list

This commit is contained in:
Roy
2021-12-10 18:40:43 +01:00
parent 306dc171f4
commit 418ca4a235
4 changed files with 31 additions and 20 deletions

View File

@@ -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):