Skip to content

Commit

Permalink
Adjust folder type creation in collect_hierarchy.
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-ynput committed Nov 19, 2024
1 parent 70a38a6 commit 26e5c2f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions client/ayon_core/plugins/publish/collect_hierarchy.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ def process(self, context):

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", []),
}
Expand Down

0 comments on commit 26e5c2f

Please sign in to comment.