mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 07:27:41 -06:00
FIX: jump to 3deditor page on click object link
Change-Id: I8d45120b5645b7589c42342c2eb70cc7855d7b63
This commit is contained in:
parent
59dcd623b3
commit
c0b0249194
1 changed files with 3 additions and 1 deletions
|
@ -3696,8 +3696,10 @@ void Plater::priv::process_validation_warning(StringObjectException const &warni
|
||||||
auto action_fn = (mo || !warning.opt_key.empty()) ? [id = mo ? mo->id() : 0, opt = warning.opt_key](wxEvtHandler *) {
|
auto action_fn = (mo || !warning.opt_key.empty()) ? [id = mo ? mo->id() : 0, opt = warning.opt_key](wxEvtHandler *) {
|
||||||
auto & objects = wxGetApp().model().objects;
|
auto & objects = wxGetApp().model().objects;
|
||||||
auto iter = id.id ? std::find_if(objects.begin(), objects.end(), [id](auto o) { return o->id() == id; }) : objects.end();
|
auto iter = id.id ? std::find_if(objects.begin(), objects.end(), [id](auto o) { return o->id() == id; }) : objects.end();
|
||||||
if (iter != objects.end())
|
if (iter != objects.end()) {
|
||||||
|
wxGetApp().mainframe->select_tab(MainFrame::tp3DEditor);
|
||||||
wxGetApp().obj_list()->select_items({{*iter, nullptr}});
|
wxGetApp().obj_list()->select_items({{*iter, nullptr}});
|
||||||
|
}
|
||||||
if (!opt.empty()) {
|
if (!opt.empty()) {
|
||||||
if (iter != objects.end())
|
if (iter != objects.end())
|
||||||
wxGetApp().params_panel()->switch_to_object();
|
wxGetApp().params_panel()->switch_to_object();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue