Merge branch 'develop' into bugfix/type-hint-annotation

This commit is contained in:
Jakub Trllo 2025-06-27 10:48:44 +02:00 committed by GitHub
commit 2de9915d44
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 0 deletions

View file

@ -757,6 +757,15 @@ class ExtractBurnin(publish.Extractor):
)
})
# burnin source resolution which might be different than on review
repre_source_resolution_width = repre.get("source_resolution_width")
repre_source_resolution_height = repre.get("source_resolution_height")
if repre_source_resolution_width and repre_source_resolution_height:
burnin_data.update({
"source_resolution_width": repre_source_resolution_width,
"source_resolution_height": repre_source_resolution_height
})
def filter_burnins_defs(self, profile, instance):
"""Filter outputs by their values from settings.

View file

@ -1597,6 +1597,12 @@ class ExtractReview(pyblish.api.InstancePlugin):
"FFprobe couldn't read resolution from input file: \"{}\""
).format(full_input_path_single_file))
# collect source values to be potentially used in burnins later
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
output_width = output_def["width"] or output_width or None