Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Account for no overrides.
Browse files Browse the repository at this point in the history
  • Loading branch information
tokejepsen committed May 9, 2024
1 parent a861de4 commit f127a5e
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions openpype/hosts/maya/plugins/publish/extract_pointcache.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,15 +291,16 @@ def get_attribute_defs(cls):

enabled_flags = [x for x in flags if x in overrides]
flags = overrides - set(override_defs.keys())
defs.append(
EnumDef(
"flags",
flags,
default=enabled_flags,
multiselection=True,
label="Export Flags",
if flags:
defs.append(
EnumDef(
"flags",
flags,
default=enabled_flags,
multiselection=True,
label="Export Flags",
)
)
)

for key, value in override_defs.items():
if key not in overrides:
Expand Down

0 comments on commit f127a5e

Please sign in to comment.