mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
♻️ remove the check for product base type support - publisher model
This commit is contained in:
parent
2cf392633e
commit
05547c752e
1 changed files with 1 additions and 6 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue