collect templates fix there is not defined context

This commit is contained in:
iLLiCiTiT 2020-02-03 18:36:37 +01:00
parent ed280250c4
commit fd42c048b3

View file

@ -91,7 +91,7 @@ class CollectTemplates(pyblish.api.InstancePlugin):
"representation": "TEMP"}
# Add datetime data to template data
datetime_data = context.data.get("datetimeData") or {}
datetime_data = instance.context.data.get("datetimeData") or {}
template_data.update(datetime_data)
resolution_width = instance.data.get("resolutionWidth")