Use XML::SAX::PurePerl instead of XML::SAX::ExpatXS for now

degen-loop-screen
Alessandro Ranellucci 2012-02-26 18:17:23 +01:00
parent b0676b226d
commit f451bb2bd0
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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';