Revert exclude family check to maintain old behavior

This commit is contained in:
Roy Nieterau 2025-05-27 10:07:55 +02:00
parent 82581b4635
commit 1b3a08af01

View file

@ -72,8 +72,13 @@ class CleanUp(pyblish.api.InstancePlugin):
self.log.debug("Cleaning renders new...")
self.clean_renders(instance, skip_cleanup_filepaths)
# TODO: Figure out whether this could be refactored to just a
# product_type in self.exclude_families check.
product_type = instance.data["productType"]
if product_type in self.exclude_families:
if any(
exclude_family in product_type
for exclude_family in self.exclude_families
):
self.log.debug(
"Skipping cleanup for instance because product "
f"type is excluded from cleanup: {product_type}")