Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Enhancement: Add tools_env to data context entities
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyprien CAILLOT committed Sep 11, 2024
1 parent d9731d0 commit 4086d20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions openpype/plugins/publish/collect_context_entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,5 @@ def process(self, context):
context.data["frameEndHandle"] = frame_end_h

context.data["fps"] = data["fps"]

context.data["tools_env"] = data.get("tools_env", [])
3 changes: 2 additions & 1 deletion openpype/plugins/publish/collect_hierarchy.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ def process(self, context):
"fps": instance.data["fps"],
"resolutionWidth": instance.data["resolutionWidth"],
"resolutionHeight": instance.data["resolutionHeight"],
"pixelAspect": instance.data["pixelAspect"]
"pixelAspect": instance.data["pixelAspect"],
"tools_env": context.data.get("tools_env", [])
}
# Split by '/' for AYON where asset is a path
name = instance.data["asset"].split("/")[-1]
Expand Down

0 comments on commit 4086d20

Please sign in to comment.