Followup to clones auto arrange: use current plate (#6373)

* Use current plate for auto arrange clones
This commit is contained in:
Vovodroid 2024-09-25 14:29:21 +03:00 committed by GitHub
parent 8d9ec11fe9
commit 23eb055cb5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13397,8 +13397,10 @@ void Plater::clone_selection()
} }
Selection& selection = p->get_selection(); Selection& selection = p->get_selection();
selection.clone(res); selection.clone(res);
if (wxGetApp().app_config->get("auto_arrange") == "true") if (wxGetApp().app_config->get("auto_arrange") == "true") {
this->set_prepare_state(Job::PREPARE_STATE_MENU);
this->arrange(); this->arrange();
}
} }
std::vector<Vec2f> Plater::get_empty_cells(const Vec2f step) std::vector<Vec2f> Plater::get_empty_cells(const Vec2f step)