Skip to content

Commit

Permalink
check existence of entity type on recreation and use Folder if not found
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed Dec 14, 2021
1 parent 0ff12fd commit 00b1430
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion openpype/modules/default_modules/ftrack/lib/avalon_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -2502,7 +2502,13 @@ def create_ftrack_ent_from_avalon_ent(self, av_entity, parent_id):
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 {} <{}>"
Expand Down

0 comments on commit 00b1430

Please sign in to comment.