mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Use XML::SAX::PurePerl instead of XML::SAX::ExpatXS for now
This commit is contained in:
		
							parent
							
								
									b0676b226d
								
							
						
					
					
						commit
						f451bb2bd0
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		|  | @ -9,14 +9,14 @@ sub read_file { | |||
|     my ($file) = @_; | ||||
|      | ||||
|     eval "require Slic3r::Format::AMF::Parser; 1" | ||||
|         or die "AMF parsing requires XML::SAX::ExpatXS\n"; | ||||
|         or die "AMF parsing requires XML::SAX\n"; | ||||
|      | ||||
|     open my $fh, '<', $file or die "Failed to open $file\n"; | ||||
|      | ||||
|     my $vertices = []; | ||||
|     my $materials = {}; | ||||
|     my $meshes_by_material = {}; | ||||
|     XML::SAX::ExpatXS | ||||
|     XML::SAX::PurePerl | ||||
|         ->new(Handler => Slic3r::Format::AMF::Parser->new( | ||||
|             _vertices           => $vertices, | ||||
|             _materials          => $materials, | ||||
|  |  | |||
|  | @ -2,7 +2,7 @@ package Slic3r::Format::AMF::Parser; | |||
| use strict; | ||||
| use warnings; | ||||
| 
 | ||||
| use XML::SAX::ExpatXS; | ||||
| use XML::SAX::PurePerl; | ||||
| use XXX; | ||||
| 
 | ||||
| use base 'XML::SAX::Base'; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci