Adjusting one sample

This commit is contained in:
Matthias Koefferlein 2025-09-10 18:21:59 +02:00
parent f901c1fb99
commit 8659e165d5
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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):
"""