Skip to content

Commit 9762687

Browse files
committed
Use name if short name is not available
1 parent 5016aee commit 9762687

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

panels/fixtures.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def draw(self, context):
106106
text=f"{profile['name']} {'@' if revision_name else ''} {revision_name}",
107107
)
108108
op.profile = profile["filename"]
109-
op.short_name = profile["short_name"]
109+
op.short_name = profile["short_name"] or profile["name"]
110110

111111

112112
class DMX_MT_Fixture_Mode(Menu):
@@ -147,7 +147,7 @@ class DMX_OT_Fixture_Profiles(Operator):
147147

148148
def execute(self, context):
149149
context.add_edit_panel.profile = self.profile
150-
context.add_edit_panel.user_fixture_name = self.short_name
150+
context.add_edit_panel.user_fixture_name = self.short_name or self.name
151151
return {"FINISHED"}
152152

153153

0 commit comments

Comments
 (0)