Reload All and Project Path (#4903)

* Reload All and Project Path

* Revert Reload All logic to original

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
chshkhr 2024-04-30 16:55:23 +03:00 committed by GitHub
parent 872f729d75
commit 6d19e2d29c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1490,6 +1490,17 @@ void MenuFactory::create_plate_menu()
}, },
m_parent); m_parent);
// reload all objects on current plate
append_menu_item(
menu, wxID_ANY, _L("Reload All"), _L("reload all from disk"),
[](wxCommandEvent&) {
PartPlate* plate = plater()->get_partplate_list().get_selected_plate();
assert(plate);
plater()->set_prepare_state(Job::PREPARE_STATE_MENU);
plater()->reload_all_from_disk();
},
"", nullptr, []() { return !plater()->get_partplate_list().get_selected_plate()->get_objects().empty(); }, m_parent);
// orient objects on current plate // orient objects on current plate
append_menu_item(menu, wxID_ANY, _L("Auto Rotate"), _L("auto rotate current plate"), append_menu_item(menu, wxID_ANY, _L("Auto Rotate"), _L("auto rotate current plate"),
[](wxCommandEvent&) { [](wxCommandEvent&) {