From 7672be64885aeff90e459b4ae788431c7f4d5d83 Mon Sep 17 00:00:00 2001 From: Vojtech Kral Date: Wed, 10 Oct 2018 11:21:20 +0200 Subject: [PATCH] Plater: on_object_select --- src/slic3r/GUI/Plater.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index ff8592cfe..c40108f31 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -1576,12 +1576,11 @@ void Plater::priv::on_object_select(ObjectSelectEvent &evt) const auto obj_idx = evt.object_id(); const auto vol_idx = evt.volume_id(); - // TODO: - // if (($obj_idx != -1) && ($vol_idx == -1)) { - // # Ignore the special objects (the wipe tower proxy and such). - // $self->select_object((defined($obj_idx) && $obj_idx >= 0 && $obj_idx < 1000) ? $obj_idx : undef); - // $self->item_changed_selection($obj_idx) if (defined($obj_idx)); - // } + if (obj_idx >= 0 && obj_idx < 1000 && vol_idx == -1) { + // Ignore the special objects (the wipe tower proxy and such). + select_object(obj_idx); + item_changed_selection(); + } } void Plater::priv::on_viewport_changed(SimpleEvent& evt)