mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-30 15:41:59 +08:00
Only match if it's a %.
This commit is contained in:
parent
2d064e2569
commit
ae7fdfe227
@ -170,7 +170,7 @@ sub validate {
|
||||
if $self->get_value('first_layer_height') <= 0;
|
||||
|
||||
die "Adaptive slicing requires a non-relative first layer height.\n"
|
||||
if $self->get_value('adaptive_slicing') == 1 and $self->first_layer_height =~ /^(?:\d*(?:\.\d+)?)%?$/;
|
||||
if $self->get_value('adaptive_slicing') == 1 and $self->first_layer_height =~ /^(?:\d*(?:\.\d+)?)%$/;
|
||||
|
||||
# --filament-diameter
|
||||
die "Invalid value for --filament-diameter\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user