Plater: on_object_select

This commit is contained in:
Vojtech Kral 2018-10-10 11:21:20 +02:00
parent 6d33077564
commit 7672be6488

View file

@ -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)