Skip to content

Commit

Permalink
fix(Light-UI): Fix an issue in the UI drawing for lights (Thanks @jtsage
Browse files Browse the repository at this point in the history
)

Fix #137
  • Loading branch information
StjerneIdioten committed Nov 26, 2021
1 parent ae6f403 commit ea9a454
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addon/i3dio/ui/helper_functions.py
Expand Up @@ -63,7 +63,7 @@ def i3d_property(layout, attributes, attribute: str, obj):
row.alignment = 'RIGHT'
# Display the name of the property
lab = row.column()
lab.label(text=attributes.__annotations__[attribute][1]['name'])
lab.label(text=attributes.i3d_map[attribute]['name'])
attrib_row = row.row()
if getattr(obj, attributes.i3d_map[attribute]['tracking']['member_path'], None) is not None:
attrib_row.prop(obj, attributes.i3d_map[attribute]['tracking']['member_path'], text='')
Expand All @@ -72,7 +72,7 @@ def i3d_property(layout, attributes, attribute: str, obj):
attrib_row.label(text=f"'{mapping[getattr(obj, attributes.i3d_map[attribute]['tracking']['member_path'])]}' "
f"in GE")

attrib_row.label(text=f"Follows '{attributes.__annotations__[attribute+'_tracking'][1]['name']}'")
attrib_row.label(text=f"Follows '{attributes.i3d_map[attribute]['tracking']['member_path']}")
else:
lab.enabled = False

Expand Down

0 comments on commit ea9a454

Please sign in to comment.