From 0f6597cf4914cfa5efe56398a5a5ce7b26fee262 Mon Sep 17 00:00:00 2001 From: "Lex Darlog (DRL)" <3897975+Lex-DRL@users.noreply.github.com> Date: Mon, 14 Jul 2025 22:51:39 +0500 Subject: [PATCH] upscale node: reorder outputs --- _funcs.py | 2 +- nodes_upscale.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/_funcs.py b/_funcs.py index 74a96a4..d636a43 100644 --- a/_funcs.py +++ b/_funcs.py @@ -230,7 +230,7 @@ def upscale_result_from_approx_wh( needs_resize, real_upscale_avg, real_upscale_x, real_upscale_y = _need_post_resize(width, height, up_width, up_height) out_upscale: float = upscale if needs_resize else real_upscale_avg - result = (width, height, out_upscale, up_width, up_height, needs_resize) + result = (out_upscale, width, height, up_width, up_height, needs_resize) if not unique_id: return result diff --git a/nodes_upscale.py b/nodes_upscale.py index 8031d9a..82252f5 100644 --- a/nodes_upscale.py +++ b/nodes_upscale.py @@ -29,15 +29,15 @@ from .slot_types import ( # ---------------------------------------------------------- -_return_types_upscale = (_IO.INT, _IO.INT, _IO.FLOAT, _IO.INT, _IO.INT, _IO.BOOLEAN) +_return_types_upscale = (_IO.FLOAT, _IO.INT, _IO.INT, _IO.INT, _IO.INT, _IO.BOOLEAN) _return_ttips_upscale = _frozendict({ - 'orig_w': "Width for original/initial image", - 'orig_h': "Height for original/initial image", 'upscale': ( "If 'needs_resize' is FALSE, this would be the actual uniform value to scale your initial-res in order " "to get the upscaled-res.\n" "If 'needs_resize' is TRUE, this slot simply outputs the same upscale-value you've set on the node." ), + 'orig_w': "Width for original/initial image", + 'orig_h': "Height for original/initial image", 'up_w': "Width for the (main) upscaled image", 'up_h': "Height for the (main) upscaled image", 'needs_resize': (