diff --git a/lib/Slic3r/GUI/MainFrame.pm b/lib/Slic3r/GUI/MainFrame.pm index c48186c76..e36bf4a5e 100644 --- a/lib/Slic3r/GUI/MainFrame.pm +++ b/lib/Slic3r/GUI/MainFrame.pm @@ -179,6 +179,7 @@ sub _init_tabpanel { my $obj_idx = $event->GetInt; $self->{plater}->select_object($obj_idx < 0 ? undef: $obj_idx); + Wx::MessageBox("Before item_changed_selection", "Slic3r Info", wxOK | wxICON_INFORMATION, $self); $self->{plater}->item_changed_selection($obj_idx); }); diff --git a/lib/Slic3r/GUI/Plater.pm b/lib/Slic3r/GUI/Plater.pm index 689ccff28..a12b2aa8e 100644 --- a/lib/Slic3r/GUI/Plater.pm +++ b/lib/Slic3r/GUI/Plater.pm @@ -1852,6 +1852,8 @@ sub on_config_change { sub item_changed_selection{ my ($self, $obj_idx) = @_; + Wx::MessageBox("Inside item_changed_selection", "Slic3r Info", wxOK | wxICON_INFORMATION, $self); + $self->{canvas}->Refresh; if ($self->{canvas3D}){ $self->{canvas3D}->deselect_volumes; @@ -2065,6 +2067,7 @@ sub select_object { if (defined $obj_idx) { $self->{objects}->[$obj_idx]->selected(1); # Select current object in the list on c++ side + Wx::MessageBox("Before select_current_object", "Slic3r Info", wxOK | wxICON_INFORMATION, $self); Slic3r::GUI::select_current_object($obj_idx); } else { # Unselect all objects in the list on c++ side diff --git a/xs/src/slic3r/GUI/GUI.cpp b/xs/src/slic3r/GUI/GUI.cpp index 898edc365..11c868326 100644 --- a/xs/src/slic3r/GUI/GUI.cpp +++ b/xs/src/slic3r/GUI/GUI.cpp @@ -1128,9 +1128,12 @@ void unselect_objects() void select_current_object(int idx) { + wxMessageBox("Inside select_current_object", "Info"); m_objects_ctrl->UnselectAll(); + wxMessageBox("UnselectAll", "Info"); if (idx < 0) return; m_objects_ctrl->Select(m_objects_model->GetItemById(idx)); + wxMessageBox("Item is selected", "Info"); if (get_view_mode() == ConfigMenuModeExpert){ if (!m_sizer_object_buttons->IsShown(1)) @@ -1138,6 +1141,7 @@ void select_current_object(int idx) if (!m_collpane_settings->IsShown()) m_collpane_settings->Show(true); } + wxMessageBox("Updated sizer showing", "Info"); } void add_expert_mode_part(wxWindow* parent, wxBoxSizer* sizer, int event_object_selection_changed)