mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 23:23:59 -06:00
Improved error handling when importing configuration from a G-code.
This commit is contained in:
parent
f7334f58d3
commit
2ac981e422
5 changed files with 47 additions and 15 deletions
|
@ -100,7 +100,7 @@ sub merge {
|
|||
sub load {
|
||||
my $class = shift;
|
||||
my ($file) = @_;
|
||||
|
||||
|
||||
if ($file =~ /\.gcode$/i || $file =~ /\.g$/i) {
|
||||
my $config = $class->new;
|
||||
$config->_load_from_gcode($file);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue