mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 16:54:33 +02:00
fix(hypertile): correct width/height mapping in hires set_resolution
hr_upscale_to_x is the width dimension and hr_upscale_to_y the height (see processing_class.py); set_resolution assigned them transposed, producing swapped HyperTile geometry on non-square hires passes. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -259,8 +259,8 @@ def set_resolution(p, hr=False):
|
||||
if hr:
|
||||
x = getattr(p, 'hr_upscale_to_x', 0)
|
||||
y = getattr(p, 'hr_upscale_to_y', 0)
|
||||
width = y if y > 0 else p.width
|
||||
height = x if x > 0 else p.height
|
||||
width = x if x > 0 else p.width
|
||||
height = y if y > 0 else p.height
|
||||
else:
|
||||
width = p.width
|
||||
height = p.height
|
||||
|
||||
Reference in New Issue
Block a user