Address feedback from PR.

This commit is contained in:
robin@ynput.io 2025-02-03 10:51:59 +01:00
parent fd63c97f4e
commit 5c53d20124
2 changed files with 8 additions and 7 deletions

View file

@ -877,10 +877,11 @@ class Creator(BaseCreator):
# If follow workfile, gather version from workfile path.
if version is None and follow_workfile_version and current_workfile:
workfile_version = get_version_from_path(current_workfile)
version = int(workfile_version)
if workfile_version is not None:
version = int(workfile_version)
# Fill-up version with next version available.
elif version is None:
if version is None:
versions = self.get_next_versions_for_instances(
[instance]
)

View file

@ -460,14 +460,14 @@ def filter_pyblish_plugins(plugins):
)
apply_plugin_settings_automatically(plugin, plugin_settins, log)
# Remove disabled plugins
if getattr(plugin, "enabled", True) is False:
plugins.remove(plugin)
# Pyblish already operated a filter based on host.
# But applying settings might have changed "hosts"
# value in plugin so re-filter.
if not pyblish.plugin.host_is_compatible(plugin):
plugins.remove(plugin)
# Remove disabled plugins
elif getattr(plugin, "enabled", True) is False:
elif not pyblish.plugin.host_is_compatible(plugin):
plugins.remove(plugin)