♻️ remove the check for product base type support - publisher model

This commit is contained in:
Ondrej Samohel 2025-11-26 14:27:22 +01:00
parent 2cf392633e
commit 05547c752e
No known key found for this signature in database
GPG key ID: 02376E18990A97C6

View file

@ -35,7 +35,6 @@ from ayon_core.pipeline.create import (
ConvertorsOperationFailed,
ConvertorItem,
)
from ayon_core.pipeline.compatibility import is_product_base_type_supported
from ayon_core.tools.publisher.abstract import (
AbstractPublisherBackend,
@ -666,18 +665,14 @@ class CreateModel:
kwargs = {
"instance": instance,
"project_entity": project_entity,
"product_base_type": creator.product_base_type,
}
if is_product_base_type_supported() and hasattr(creator, "product_base_type"): # noqa: E501
kwargs["product_base_type"] = creator.product_base_type
# Backwards compatibility for 'project_entity' argument
# - 'get_product_name' signature changed 24/07/08
if not is_func_signature_supported(
creator.get_product_name, *args, **kwargs
):
kwargs.pop("project_entity")
kwargs.pop("product_base_type")
return creator.get_product_name(*args, **kwargs)
def create(