From 380f8ea8d5f09032d89796a1c99c61f33db744bc Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Fri, 9 Sep 2022 09:31:34 +0200 Subject: [PATCH] Follow-up of db31995310c1743faa0c1ce9d3135af6cb7e2c71 - Fixed opening of gcode files when dragging and dropping them into GCodeViewer --- src/slic3r/GUI/Plater.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 7d939f1a1..85978ed6b 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -1609,7 +1609,8 @@ bool PlaterDropTarget::OnDropFiles(wxCoord x, wxCoord y, const wxArrayString &fi m_mainframe.Raise(); m_mainframe.select_tab(size_t(0)); - m_plater.select_view_3D("3D"); + if (wxGetApp().is_editor()) + m_plater.select_view_3D("3D"); bool res = m_plater.load_files(filenames); m_mainframe.update_title(); return res;