From 9215c919b172489e5d0cdd8e40c76cc2da71dd49 Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Sat, 5 Apr 2025 01:37:01 +0300 Subject: [PATCH] Update curve_nodes.py --- nodes/curve_nodes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nodes/curve_nodes.py b/nodes/curve_nodes.py index 8953b2a..695163b 100644 --- a/nodes/curve_nodes.py +++ b/nodes/curve_nodes.py @@ -371,7 +371,7 @@ Locations are center locations. } def createshapemask(self, coordinates, frame_width, frame_height, shape_width, shape_height, shape_color, - bg_color, blur_radius, shape, intensity, size_multiplier=[1.0], accumulate=False, trailing=1.0, border_width=0, border_color='black'): + bg_color, blur_radius, shape, intensity, size_multiplier=[1.0], trailing=1.0, border_width=0, border_color='black'): # Define the number of images in the batch if len(coordinates) < 10: coords_list = [] @@ -398,8 +398,8 @@ Locations are center locations. draw = ImageDraw.Draw(image) # Calculate the size for this frame and ensure it's not less than 0 - current_width = max(0, shape_width + i * size_multiplier[i]) - current_height = max(0, shape_height + i * size_multiplier[i]) + current_width = shape_width * size_multiplier[i] + current_height = shape_height * size_multiplier[i] for coords in coords_list: location_x = coords[i]['x']