From 73df4150a7df87c63fb6b26a0e094f3779988cdb Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Thu, 25 Mar 2021 14:33:52 +0100 Subject: [PATCH] extract review use None as value of width and height --- pype/plugins/publish/extract_review.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pype/plugins/publish/extract_review.py b/pype/plugins/publish/extract_review.py index 5414ae5289..f6530219a6 100644 --- a/pype/plugins/publish/extract_review.py +++ b/pype/plugins/publish/extract_review.py @@ -757,8 +757,9 @@ class ExtractReview(pyblish.api.InstancePlugin): self.log.debug("input_height: `{}`".format(input_height)) # NOTE Setting only one of `width` or `heigth` is not allowed - output_width = output_def.get("width") - output_height = output_def.get("height") + # - settings value can't have None but has value of 0 + output_width = output_def.get("width") or None + output_height = output_def.get("height") or None # 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"]