summaryrefslogtreecommitdiff
path: root/lib/extensions
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2024-08-17 07:24:49 +0200
committerGitHub <noreply@github.com>2024-08-17 07:24:49 +0200
commit51c27ae75c9d90f37c31da138a06c9953ef7961e (patch)
tree4c44775f20772157159e064955147b651581a178 /lib/extensions
parentf3a3cde71e9312d1f07c156033de5b7fb4b99f2d (diff)
skip empty gradient blocks (#3142)
Diffstat (limited to 'lib/extensions')
-rw-r--r--lib/extensions/gradient_blocks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/extensions/gradient_blocks.py b/lib/extensions/gradient_blocks.py
index d0eca4a4..68e1e8e9 100644
--- a/lib/extensions/gradient_blocks.py
+++ b/lib/extensions/gradient_blocks.py
@@ -107,7 +107,7 @@ class GradientBlocks(CommandsExtension):
def _add_block_commands(self, block, previous_element):
current = FillStitch(block)
previous = FillStitch(previous_element)
- if previous.shape.is_empty:
+ if previous.shape.is_empty or current.shape.is_empty:
return
nearest = nearest_points(current.shape, previous.shape)
pos_current = self._get_command_postion(current, nearest[0])