collect templates fps fix

This commit is contained in:
Milan Kolar 2020-01-10 18:11:33 +01:00
parent 59305a1210
commit 791bb63f97
2 changed files with 12 additions and 5 deletions

View file

@ -76,10 +76,18 @@ class CollectTemplates(pyblish.api.InstancePlugin):
"subset": subset_name,
"version": version_number,
"hierarchy": hierarchy.replace("\\", "/"),
"representation": "TEMP",
"resolution_width": instance.data.get("resolutionWidth", ""),
"resolution_height": instance.data.get("resolutionHeight", ""),
"fps": str(instance.data.get("fps", ""))}}
"representation": "TEMP")}
resolution_width = instance.data.get("resolutionWidth")
resolution_height = instance.data.get("resolutionHeight")
fps = instance.data.get("fps")
if resolution_width:
template_data["resolution_width"] = resolution_width
if resolution_width:
template_data["resolution_height"] = resolution_height
if resolution_width:
template_data["fps"] = fps
instance.data["template"] = template
instance.data["assumedTemplateData"] = template_data

View file

@ -273,7 +273,6 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
resolution_height = repre.get("resolutionHeight")
fps = instance.data.get("fps")
if resolution_width:
template_data["resolution_width"] = resolution_width
if resolution_width: