From 813aa5b3079d112897f6656ea518b8decc994149 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Tue, 19 Mar 2013 12:24:39 +0100 Subject: [PATCH] Allow drag and drop for OBJ files --- lib/Slic3r/GUI/Plater.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Slic3r/GUI/Plater.pm b/lib/Slic3r/GUI/Plater.pm index 0cdd5d04..c0e30012 100644 --- a/lib/Slic3r/GUI/Plater.pm +++ b/lib/Slic3r/GUI/Plater.pm @@ -1052,8 +1052,8 @@ sub OnDropFiles { # 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; + # only accept STL, OBJ and AMF files + return 0 if grep !/\.(?:stl|obj|amf(?:\.xml)?)$/i, @$filenames; $self->{window}->load_file($_) for @$filenames; }