Closed panovr closed 7 years ago
Sloth document for text attribute said that:
For below custom configuration, the text "Left Eye" still display as "left_eye" in the Properties dock.
LABELS = ( {"attributes": {"type": "rect", "class": "head", "id": ["Martin", "Mika"]}, "item": "sloth.items.RectItem", "inserter": "sloth.items.RectItemInserter", "text": "Head" }, {"attributes": {"type": "point", "class": "left_eye", "id": ["Martin", "Mika"]}, "item": "sloth.items.PointItem", "inserter": "sloth.items.PointItemInserter", "text": "Left Eye" }, {"attributes": {"type": "point", "class": "right_eye", "id": ["Martin", "Mika"]}, "item": "sloth.items.PointItem", "inserter": "sloth.items.PointItemInserter", "text": "Right Eye" }, )
Can confirm this. The UI is actually using the class attribute, not text.
class
text
Fixed, thx to @Tibor2, merged!
Sloth document for text attribute said that:
For below custom configuration, the text "Left Eye" still display as "left_eye" in the Properties dock.