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

Commit

Permalink
added human readable keys into taskChanged topic data
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed Jun 16, 2022
1 parent 0c28a29 commit 89a7d43
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion openpype/lib/avalon_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -797,8 +797,14 @@ def update_current_task(task=None, asset=None, app=None, template_key=None):
else:
os.environ[key] = value

data = changes.copy()
# Convert env keys to human readable keys
data["project_name"] = legacy_io.Session["AVALON_PROJECT"]
data["asset_name"] = legacy_io.Session["AVALON_ASSET"]
data["task_name"] = legacy_io.Session["AVALON_TASK"]

# Emit session change
emit_event("taskChanged", changes.copy())
emit_event("taskChanged", data)

return changes

Expand Down

0 comments on commit 89a7d43

Please sign in to comment.