Follow-up of db31995310
- Fixed opening of gcode files when dragging and dropping them into GCodeViewer
This commit is contained in:
parent
70d0e9eb44
commit
380f8ea8d5
1 changed files with 2 additions and 1 deletions
|
@ -1609,7 +1609,8 @@ bool PlaterDropTarget::OnDropFiles(wxCoord x, wxCoord y, const wxArrayString &fi
|
||||||
|
|
||||||
m_mainframe.Raise();
|
m_mainframe.Raise();
|
||||||
m_mainframe.select_tab(size_t(0));
|
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);
|
bool res = m_plater.load_files(filenames);
|
||||||
m_mainframe.update_title();
|
m_mainframe.update_title();
|
||||||
return res;
|
return res;
|
||||||
|
|
Loading…
Add table
Reference in a new issue