From 133e579044b425f04cc91b1370faf207167b236e Mon Sep 17 00:00:00 2001 From: "Lex Darlog (DRL)" <3897975+Lex-DRL@users.noreply.github.com> Date: Sun, 20 Jul 2025 00:24:56 +0500 Subject: [PATCH] ren: `BestResolutionPrimUpStrategy` -> `BestResolutionPrimCropPadStrategy` --- CHANGELOG.md | 5 +++++ __init__.py | 4 ++-- nodes_prims.py | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1aa258f..2d1b647 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# V1.1.1 + +- This `CHANGELOG.md` file. +- Prim-node rename (class and internal name, too): `Upscale Strategy (Best-Res)` -> `Crop-Pad Strategy (Best-Res)` + # V1.1.0 The minimally-complete version (full workflow coverage for my own use-case). diff --git a/__init__.py b/__init__.py index 0ba59ab..e8a0590 100644 --- a/__init__.py +++ b/__init__.py @@ -15,8 +15,8 @@ NODE_CLASS_MAPPINGS: _t.Dict[str, type] = { "BestResolutionFromAspectRatio": BestResolutionFromAspectRatio, "BestResolutionSimple": BestResolutionSimple, + "BestResolutionPrimCropPadStrategy": BestResolutionPrimCropPadStrategy, "BestResolutionPrimResPriority": BestResolutionPrimResPriority, - "BestResolutionPrimUpStrategy": BestResolutionPrimUpStrategy, "BestResolutionUpscaledCropPad": BestResolutionUpscaledCropPad, } @@ -26,8 +26,8 @@ NODE_DISPLAY_NAME_MAPPINGS: _t.Dict[str, str] = { "BestResolutionFromAspectRatio": "Best-Res (ratio)", "BestResolutionSimple": "Best-Res (simple)", + "BestResolutionPrimCropPadStrategy": "Crop-Pad Strategy (Best-Res)", "BestResolutionPrimResPriority": "Priority (Best-Res)", - "BestResolutionPrimUpStrategy": "Upscale Strategy (Best-Res)", "BestResolutionUpscaledCropPad": "Upscaled Crop/Pad (Best-Res)", } diff --git a/nodes_prims.py b/nodes_prims.py index 3d7fe71..500c05e 100644 --- a/nodes_prims.py +++ b/nodes_prims.py @@ -98,11 +98,11 @@ def _up_strategy_verify(strategy: _t.Union[RoundingPriority, str]) -> str: return str(strategy) -class BestResolutionPrimUpStrategy: +class BestResolutionPrimCropPadStrategy: """ 'strategy' selector for "Upscaled Crop/Pad" node in "Best Resolution" pack. """ - NODE_NAME = 'BestResolutionPrimUpStrategy' + NODE_NAME = 'BestResolutionPrimCropPadStrategy' CATEGORY = _meta.category DESCRIPTION = _format_docstring(_cleandoc(__doc__))