mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
use instance resolution for output before using input's resolution
This commit is contained in:
parent
f267476d33
commit
fcc664f31a
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue