Skip to content

Commit

Permalink
Fix host refresh in publish/lib.py
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-ynput committed Jan 29, 2025
1 parent 3731e12 commit 1b109d7
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion client/ayon_core/pipeline/publish/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,19 @@ class method 'def apply_settings(cls, project_settings)'
)
apply_plugin_settings_automatically(plugin, plugin_settins, log)

# Pyblish already operated a filter based on host.
# But applying settings might have changed "hosts"
# value in plugin so re-filter.
plugin_hosts = getattr(plugin, "hosts", None)
if (
plugin_hosts
and "*" not in plugin_hosts
and host_name not in plugin_hosts
):
plugins.remove(plugin)

# Remove disabled plugins
if getattr(plugin, "enabled", True) is False:
elif getattr(plugin, "enabled", True) is False:
plugins.remove(plugin)


Expand Down

0 comments on commit 1b109d7

Please sign in to comment.