use instance resolution for output before using input's resolution

This commit is contained in:
iLLiCiTiT 2020-04-24 19:24:16 +02:00
parent f267476d33
commit fcc664f31a

View file

@ -612,6 +612,11 @@ class ExtractReview(pyblish.api.InstancePlugin):
output_width = output_def.get("width")
output_height = output_def.get("height")
# Use instance resolution if output definition has not set it.
if output_width is None or output_height is None:
output_width = temp_data["resolution_width"]
output_height = temp_data["resolution_height"]
# Use source's input resolution instance does not have set it.
if output_width is None or output_height is None:
output_width = input_width
output_height = input_height