mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-12 20:39:00 +08:00
Workaround for a perl 5.10 bug about leaked scalars. #503
This commit is contained in:
parent
f899deb6b6
commit
c7bc9bed46
@ -865,6 +865,10 @@ sub OnDropFiles {
|
||||
my $self = shift;
|
||||
my ($x, $y, $filenames) = @_;
|
||||
|
||||
# stop scalars leaking on older perl
|
||||
# https://rt.perl.org/rt3/Public/Bug/Display.html?id=70602
|
||||
@_ = ();
|
||||
|
||||
# only accept STL and AMF files
|
||||
return 0 if grep !/\.(?:stl|amf(?:\.xml)?)$/i, @$filenames;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user