mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-10-17 04:32:51 +02:00
Ported PlaceholderParser::apply_env_variables() to XS
This commit is contained in:
1 parent
724e668a94
commit
f361d8ad43
4 files changed
+22
-17
No files matched your search
@@ -2,20 +2,6 @@ package Slic3r::GCode::PlaceholderParser;
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
sub new {
|
||||
# TODO: move this code to C++ constructor, remove this method
|
||||
my ($class) = @_;
|
||||
|
||||
my $self = $class->_new;
|
||||
$self->apply_env_variables;
|
||||
return $self;
|
||||
}
|
||||
|
||||
sub apply_env_variables {
|
||||
my ($self) = @_;
|
||||
$self->_single_set($_, $ENV{$_}) for grep /^SLIC3R_/, keys %ENV;
|
||||
}
|
||||
|
||||
sub process {
|
||||
my ($self, $string, $extra) = @_;
|
||||
|
||||
|
||||
Reference in new issue
Block a user