From f3a02e2d7d843a5a29dbfb31b729438d7be5a132 Mon Sep 17 00:00:00 2001 From: EnragedAntelope <176548309+EnragedAntelope@users.noreply.github.com> Date: Sat, 8 Nov 2025 09:10:43 -0500 Subject: [PATCH] Refactor ConstrainResolution class and methods --- nodes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodes.py b/nodes.py index f6e7a0e..f956a19 100644 --- a/nodes.py +++ b/nodes.py @@ -82,7 +82,7 @@ class ConstrainResolution(io.ComfyNode): io.Input( "constraint_mode", ConstraintMode, - default=ConstraintMode.MIN_RES, + ConstraintMode.MIN_RES, # Default value as a positional argument tooltip=( "How to handle conflicts when extreme aspect ratios make it impossible to satisfy both min and max.\n" "• Prioritize Min Resolution: Ensures neither dimension falls below min_res (may exceed max_res)\n" @@ -102,7 +102,7 @@ class ConstrainResolution(io.ComfyNode): io.Input( "crop_position", CropPosition, - default=CropPosition.CENTER, + CropPosition.CENTER, # Default value as a positional argument tooltip=( "Where to crop from when 'Crop as Required' is enabled.\n" "• center: Crop equally from all sides\n"