mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-05 05:00:40 +08:00
Patch menu deletion issue
This commit is contained in:
parent
7ffa425d65
commit
e0aa6d2f85
@ -500,7 +500,8 @@ void Plater::on_model_change(bool force_autocenter) {
|
|||||||
auto* menu = this->GetFrame()->plater_select_menu;
|
auto* menu = this->GetFrame()->plater_select_menu;
|
||||||
|
|
||||||
if (menu != nullptr) {
|
if (menu != nullptr) {
|
||||||
for (auto* item : menu->GetMenuItems() ) { menu->Delete(item); }
|
auto list = menu->GetMenuItems();
|
||||||
|
for (auto it = list.begin();it!=list.end(); it++) { menu->Delete(*it); }
|
||||||
for (const auto& obj : this->objects) {
|
for (const auto& obj : this->objects) {
|
||||||
const auto idx {obj.identifier};
|
const auto idx {obj.identifier};
|
||||||
auto name {wxString(obj.name)};
|
auto name {wxString(obj.name)};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user