From 8659e165d58ee30f4aa0cd90704134d666c16ded Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Wed, 10 Sep 2025 18:21:59 +0200 Subject: [PATCH] Adjusting one sample --- src/lay/lay/macro_templates/drag_box_sample.lym | 6 +++++- src/lay/lay/macro_templates/drag_box_sample_python.lym | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/lay/lay/macro_templates/drag_box_sample.lym b/src/lay/lay/macro_templates/drag_box_sample.lym index 454c0d8d3..1f32c03b3 100644 --- a/src/lay/lay/macro_templates/drag_box_sample.lym +++ b/src/lay/lay/macro_templates/drag_box_sample.lym @@ -279,7 +279,11 @@ class DragBoxPlugin < RBA::Plugin @marker.line_style = 2 # short-dashed @marker.vertex_size = 0 # no vertexes @marker.line_width = @width - @marker.color = @color ? (@color | 0xff000000) : 0 # auto + if @color + @marker.color = @color | 0xff000000 + else + @marker.reset_color + end end end diff --git a/src/lay/lay/macro_templates/drag_box_sample_python.lym b/src/lay/lay/macro_templates/drag_box_sample_python.lym index 7edd306f2..ffd328910 100644 --- a/src/lay/lay/macro_templates/drag_box_sample_python.lym +++ b/src/lay/lay/macro_templates/drag_box_sample_python.lym @@ -297,7 +297,7 @@ class DragBoxPlugin(pya.Plugin): if self.color is not None: self.marker.color = self.color | 0xff000000 else: - self.marker.color = 0 # auto + self.marker.reset_color() def _update_box(self, box): """