mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
check existence of entity type on recreation and use Folder if not found
This commit is contained in:
parent
0ff12fdaee
commit
00b143066e
1 changed files with 7 additions and 1 deletions
|
|
@ -2502,7 +2502,13 @@ class SyncEntitiesFactory:
|
|||
parent_entity = self.entities_dict[parent_id]["entity"]
|
||||
|
||||
_name = av_entity["name"]
|
||||
_type = av_entity["data"].get("entityType", "folder")
|
||||
_type = av_entity["data"].get("entityType")
|
||||
# Check existence of object type
|
||||
if _type and _type not in self.object_types_by_name:
|
||||
_type = None
|
||||
|
||||
if not _type:
|
||||
_type = "Folder"
|
||||
|
||||
self.log.debug((
|
||||
"Re-ceating deleted entity {} <{}>"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue