mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 13:02:39 -07:00
Parse options from AMF metadata
This commit is contained in:
@@ -97,6 +97,12 @@ sub end_element {
|
|||||||
} elsif ($data->{LocalName} eq 'material') {
|
} elsif ($data->{LocalName} eq 'material') {
|
||||||
$self->{_material} = undef;
|
$self->{_material} = undef;
|
||||||
} elsif ($data->{LocalName} eq 'metadata' && $self->{_material}) {
|
} elsif ($data->{LocalName} eq 'metadata' && $self->{_material}) {
|
||||||
|
if ($self->{_material_metadata_type} =~ /^slic3r\.(.+)/) {
|
||||||
|
my $opt_key = $1;
|
||||||
|
if (exists $Slic3r::Config::Options->{$opt_key}) {
|
||||||
|
$self->{_material}->set_deserialize($opt_key, $self->{_material}->attributes->{$opt_key});
|
||||||
|
}
|
||||||
|
}
|
||||||
$self->{_material_metadata_type} = undef;
|
$self->{_material_metadata_type} = undef;
|
||||||
} elsif ($data->{LocalName} eq 'constellation') {
|
} elsif ($data->{LocalName} eq 'constellation') {
|
||||||
$self->{_constellation} = undef;
|
$self->{_constellation} = undef;
|
||||||
|
|||||||
Reference in New Issue
Block a user