diff --git a/openpype/hosts/maya/plugins/publish/extract_pointcache.py b/openpype/hosts/maya/plugins/publish/extract_pointcache.py index 79e07cf7322..e036b4850c7 100644 --- a/openpype/hosts/maya/plugins/publish/extract_pointcache.py +++ b/openpype/hosts/maya/plugins/publish/extract_pointcache.py @@ -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: