FIX:keep all three import methods consistent
Change-Id: I82fe0b8ec2df2092b35119c021d6dff2575720ae
This commit is contained in:
parent
71acbec38d
commit
3e21f0cc91
|
@ -1977,7 +1977,7 @@ void MainFrame::init_menubar_as_editor()
|
||||||
#ifndef __APPLE__
|
#ifndef __APPLE__
|
||||||
append_menu_item(import_menu, wxID_ANY, _L("Import 3MF/STL/STEP/OBJ/AMF") + dots + "\tCtrl+I", _L("Load a model"),
|
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) {
|
[this](wxCommandEvent&) { if (m_plater) {
|
||||||
m_plater->add_model();
|
m_plater->add_file();
|
||||||
} }, "menu_import", nullptr,
|
} }, "menu_import", nullptr,
|
||||||
[this](){return can_add_models(); }, this);
|
[this](){return can_add_models(); }, this);
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -5614,9 +5614,9 @@ void Plater::priv::on_process_completed(SlicingProcessCompletedEvent &evt)
|
||||||
void Plater::priv::on_action_add(SimpleEvent&)
|
void Plater::priv::on_action_add(SimpleEvent&)
|
||||||
{
|
{
|
||||||
if (q != nullptr) {
|
if (q != nullptr) {
|
||||||
q->add_model();
|
//q->add_model();
|
||||||
//BBS open file in toolbar add
|
//BBS open file in toolbar add
|
||||||
//q->add_file();
|
q->add_file();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue