From d4c6c9eff80f75fdd4a2c5d7bdcdc5a63f17ad3d Mon Sep 17 00:00:00 2001 From: Alvin Tang Date: Mon, 18 May 2026 20:22:15 +0800 Subject: [PATCH] fix(FeatherMask): correct negative zero indexing for right/bottom feathering (#12881) --- comfy_extras/nodes_mask.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comfy_extras/nodes_mask.py b/comfy_extras/nodes_mask.py index 96ee1a0f8..419e561ba 100644 --- a/comfy_extras/nodes_mask.py +++ b/comfy_extras/nodes_mask.py @@ -330,7 +330,7 @@ class FeatherMask(IO.ComfyNode): for x in range(right): feather_rate = (x + 1) / right - output[:, :, -x] *= feather_rate + output[:, :, -(x + 1)] *= feather_rate for y in range(top): feather_rate = (y + 1) / top @@ -338,7 +338,7 @@ class FeatherMask(IO.ComfyNode): for y in range(bottom): feather_rate = (y + 1) / bottom - output[:, -y, :] *= feather_rate + output[:, -(y + 1), :] *= feather_rate return IO.NodeOutput(output)