mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
use CURRENT_DOC_SCHEMAS in hierarchy model
This commit is contained in:
parent
29040d449f
commit
7d6741f185
1 changed files with 4 additions and 1 deletions
|
|
@ -13,6 +13,8 @@ from .constants import (
|
|||
EDITOR_OPENED_ROLE
|
||||
)
|
||||
from .style import ResourceCache
|
||||
|
||||
from openpype.lib import CURRENT_DOC_SCHEMAS
|
||||
from pymongo import UpdateOne, DeleteOne
|
||||
from avalon.vendor import qtawesome
|
||||
from Qt import QtCore, QtGui
|
||||
|
|
@ -1628,7 +1630,8 @@ class AssetItem(BaseItem):
|
|||
"tasks": tasks
|
||||
}
|
||||
schema_name = (
|
||||
self._origin_asset_doc.get("schema") or "openpype:asset-3.0"
|
||||
self._origin_asset_doc.get("schema")
|
||||
or CURRENT_DOC_SCHEMAS["asset"]
|
||||
)
|
||||
|
||||
doc = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue