mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-10-14 19:22:53 +02:00
New config field extruder_color for preview of extruder assignment.
This commit is contained in:
1 parent
2713aa1772
commit
7d64c465c0
13 files changed
+284
-64
No files matched your search
@@ -423,8 +423,10 @@ sub get_value {
|
||||
|
||||
sub _string_to_colour {
|
||||
my ($self, $string) = @_;
|
||||
|
||||
|
||||
$string =~ s/^#//;
|
||||
# If the color is in an invalid format, set it to white.
|
||||
$string = 'FFFFFF' if ($string !~ m/^[[:xdigit:]]{6}/);
|
||||
return Wx::Colour->new(unpack 'C*', pack 'H*', $string);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user