mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
extract review use None as value of width and height
This commit is contained in:
parent
635347cf20
commit
73df4150a7
1 changed files with 3 additions and 2 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue