mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fix scale in legacy code
This commit is contained in:
parent
351d7cb03c
commit
3d7da50191
1 changed files with 4 additions and 0 deletions
|
|
@ -1317,6 +1317,10 @@ class ExtractReview(pyblish.api.InstancePlugin):
|
|||
if resolution_ratio_test < delivery_ratio_test:
|
||||
scale_factor = float(self.to_width) / (
|
||||
resolution_width * pixel_aspect)
|
||||
if int(scale_factor * 100) == 100:
|
||||
scale_factor = (
|
||||
float(self.to_height) / resolution_height
|
||||
)
|
||||
|
||||
self.log.debug("__ scale_factor: `{}`".format(scale_factor))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue