summaryrefslogtreecommitdiff
path: root/lib/stitch_plan/stitch_plan.py
diff options
context:
space:
mode:
authorMomo <reni@allenka.de>2019-07-07 16:25:21 +0200
committerMomo <reni@allenka.de>2019-07-07 16:25:21 +0200
commit0cd562a4fcfe7ddec45103cf417e14409e378bff (patch)
tree182352d423f193a110fd3d032180e4e5d3b1712f /lib/stitch_plan/stitch_plan.py
parentfccefb3e0d9cf9a512983e3dbf4927ade1867f81 (diff)
delete empty color block
Diffstat (limited to 'lib/stitch_plan/stitch_plan.py')
-rw-r--r--lib/stitch_plan/stitch_plan.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/stitch_plan/stitch_plan.py b/lib/stitch_plan/stitch_plan.py
index 808fa626..0b12c2c5 100644
--- a/lib/stitch_plan/stitch_plan.py
+++ b/lib/stitch_plan/stitch_plan.py
@@ -72,6 +72,10 @@ class StitchPlan(object):
self.color_blocks.append(color_block)
return color_block
+ def delete_empty_color_block(self, color_block):
+ if len(color_block) == 0:
+ self.color_blocks.remove(color_block)
+
def add_color_block(self, color_block):
self.color_blocks.append(color_block)