Follow up c16fa93bdb
-hot fix
This commit is contained in:
parent
c16fa93bdb
commit
7f9f47da25
@ -471,7 +471,7 @@ wxMenu* MenuFactory::append_submenu_add_generic(wxMenu* menu, ModelVolumeType ty
|
||||
|
||||
const ConfigOptionMode mode = wxGetApp().get_mode();
|
||||
|
||||
if (mode > comSimple) {
|
||||
if (type != ModelVolumeType::INVALID && mode > comSimple) {
|
||||
append_menu_item(sub_menu, wxID_ANY, _L("Load") + " " + dots, "",
|
||||
[type](wxCommandEvent&) { obj_list()->load_subobject(type); }, "", menu);
|
||||
sub_menu->AppendSeparator();
|
||||
|
Loading…
Reference in New Issue
Block a user