mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-13 23:15:58 +08:00
Allow drag and drop for OBJ files
This commit is contained in:
parent
fd2a5e894a
commit
813aa5b307
@ -1052,8 +1052,8 @@ sub OnDropFiles {
|
|||||||
# https://rt.perl.org/rt3/Public/Bug/Display.html?id=70602
|
# https://rt.perl.org/rt3/Public/Bug/Display.html?id=70602
|
||||||
@_ = ();
|
@_ = ();
|
||||||
|
|
||||||
# only accept STL and AMF files
|
# only accept STL, OBJ and AMF files
|
||||||
return 0 if grep !/\.(?:stl|amf(?:\.xml)?)$/i, @$filenames;
|
return 0 if grep !/\.(?:stl|obj|amf(?:\.xml)?)$/i, @$filenames;
|
||||||
|
|
||||||
$self->{window}->load_file($_) for @$filenames;
|
$self->{window}->load_file($_) for @$filenames;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user