mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
ignore publish attributes without attribute definitions
This commit is contained in:
parent
73196f8a08
commit
c93f3449b6
1 changed files with 4 additions and 0 deletions
|
|
@ -27,6 +27,7 @@ from ayon_core.pipeline.create import (
|
|||
Creator,
|
||||
CreateContext,
|
||||
CreatedInstance,
|
||||
AttributeValues,
|
||||
)
|
||||
from ayon_core.pipeline.create import (
|
||||
CreatorsOperationFailed,
|
||||
|
|
@ -857,7 +858,10 @@ class CreateModel:
|
|||
item_id = None
|
||||
if isinstance(item, CreatedInstance):
|
||||
item_id = item.id
|
||||
|
||||
for plugin_name, attr_val in item.publish_attributes.items():
|
||||
if not isinstance(attr_val, AttributeValues):
|
||||
continue
|
||||
attr_defs = attr_val.attr_defs
|
||||
if not attr_defs:
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue