Adjust folder type creation in collect_hierarchy.

This commit is contained in:
robin@ynput.io 2024-11-19 09:28:16 -05:00
parent 70a38a6b1a
commit 26e5c2f52b

View file

@ -43,9 +43,8 @@ class CollectHierarchy(pyblish.api.ContextPlugin):
shot_data = {
"entity_type": "folder",
# WARNING Default folder type is hardcoded
# suppose that all instances are Shots
"folder_type": "Shot",
# WARNING unless overwritten, default folder type is hardcoded to shot
"folder_type": instance.data.get("folder_type") or "Shot",
"tasks": instance.data.get("tasks") or {},
"comments": instance.data.get("comments", []),
}