mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
Workaround for a perl 5.10 bug about leaked scalars. #503
This commit is contained in:
@@ -865,6 +865,10 @@ sub OnDropFiles {
|
|||||||
my $self = shift;
|
my $self = shift;
|
||||||
my ($x, $y, $filenames) = @_;
|
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
|
# only accept STL and AMF files
|
||||||
return 0 if grep !/\.(?:stl|amf(?:\.xml)?)$/i, @$filenames;
|
return 0 if grep !/\.(?:stl|amf(?:\.xml)?)$/i, @$filenames;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user