Do not overwrite if previously collected

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
Petr Kalis 2025-06-25 11:40:58 +02:00 committed by GitHub
parent 3daa7263ad
commit e9bc6e07f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1599,8 +1599,10 @@ class ExtractReview(pyblish.api.InstancePlugin):
).format(full_input_path_single_file))
# collect source values to be potentially used in burnins later
new_repre["source_resolution_width"] = input_width
new_repre["source_resolution_height"] = input_height
if "source_resolution_width" not in new_repre:
new_repre["source_resolution_width"] = input_width
if "source_resolution_height" not in new_repre:
new_repre["source_resolution_height"] = input_height
# NOTE Setting only one of `width` or `height` is not allowed
# - settings value can't have None but has value of 0