diff --git a/client/ayon_substancepainter/plugins/publish/collect_textureset_images.py b/client/ayon_substancepainter/plugins/publish/collect_textureset_images.py index 7f9b4b8..ce5be87 100644 --- a/client/ayon_substancepainter/plugins/publish/collect_textureset_images.py +++ b/client/ayon_substancepainter/plugins/publish/collect_textureset_images.py @@ -210,15 +210,11 @@ def get_export_config(self, instance): # Create the list of Texture Sets to export. export_texture_sets = creator_attrs.get("exportTextureSets", []) - if not export_texture_sets: - export_texture_sets = [ - texture_set.name() for texture_set in - substance_painter.textureset.all_texture_sets() + if export_texture_sets: + config["exportList"] = [ + {"rootPath": texture_set_name} + for texture_set_name in export_texture_sets ] - config["exportList"] = [ - {"rootPath": texture_set_name} - for texture_set_name in export_texture_sets - ] # Consider None values from the creator attributes optionals for override in config["exportParameters"]: