mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge branch 'develop' into bugfix/type-hint-annotation
This commit is contained in:
commit
2de9915d44
2 changed files with 15 additions and 0 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue