Update openpype/plugins/publish/extract_burnin.py

Co-authored-by: Milan Kolar <mkolar@users.noreply.github.com>
This commit is contained in:
Toke Jepsen 2021-08-27 11:02:05 +01:00 committed by GitHub
parent ebcfe422ac
commit c130b72f12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -156,7 +156,7 @@ class ExtractBurnin(openpype.api.Extractor):
burnin_data["anatomy"] = filled_anatomy.get_solved()
# Add context data burnin_data.
burnin_data["context"] = instance.context.data["burnin_context"]
burnin_data["context"] = instance.context.data.get("burnin_context") or {}
# Add source camera name to burnin data
camera_name = repre.get("camera_name")