mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 20:51:12 -06:00 
			
		
		
		
	Parse options from AMF metadata
This commit is contained in:
		
							parent
							
								
									07b9b12475
								
							
						
					
					
						commit
						4e76a9e4c9
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -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; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci