FIX:keep all three import methods consistent

Change-Id: I82fe0b8ec2df2092b35119c021d6dff2575720ae
This commit is contained in:
tao wang 2022-11-01 10:18:56 +08:00 committed by Lane.Wei
parent 71acbec38d
commit 3e21f0cc91
2 changed files with 3 additions and 3 deletions

View File

@ -1977,7 +1977,7 @@ void MainFrame::init_menubar_as_editor()
#ifndef __APPLE__
append_menu_item(import_menu, wxID_ANY, _L("Import 3MF/STL/STEP/OBJ/AMF") + dots + "\tCtrl+I", _L("Load a model"),
[this](wxCommandEvent&) { if (m_plater) {
m_plater->add_model();
m_plater->add_file();
} }, "menu_import", nullptr,
[this](){return can_add_models(); }, this);
#else

View File

@ -5614,9 +5614,9 @@ void Plater::priv::on_process_completed(SlicingProcessCompletedEvent &evt)
void Plater::priv::on_action_add(SimpleEvent&)
{
if (q != nullptr) {
q->add_model();
//q->add_model();
//BBS open file in toolbar add
//q->add_file();
q->add_file();
}
}