Merge remote-tracking branch 'PRIVATE/master' into ys_cut
This commit is contained in:
commit
2ac3861b2a
340 changed files with 75309 additions and 54496 deletions
src/slic3r/GUI
|
@ -223,6 +223,14 @@ ObjectList::ObjectList(wxWindow* parent) :
|
|||
|
||||
Bind(wxEVT_DATAVIEW_ITEM_VALUE_CHANGED, &ObjectList::ItemValueChanged, this);
|
||||
|
||||
Bind(wxEVT_DATAVIEW_ITEM_ACTIVATED, [this](wxDataViewEvent& event) {
|
||||
wxDataViewItem item;
|
||||
wxDataViewColumn* col;
|
||||
this->HitTest(this->get_mouse_position_in_control(), item, col);
|
||||
this->EditItem(item, col);
|
||||
event.StopPropagation();
|
||||
});
|
||||
|
||||
Bind(wxCUSTOMEVT_LAST_VOLUME_IS_DELETED, [this](wxCommandEvent& e) { last_volume_is_deleted(e.GetInt()); });
|
||||
|
||||
Bind(wxEVT_SIZE, ([this](wxSizeEvent &e) {
|
||||
|
@ -3423,7 +3431,7 @@ void ObjectList::update_selections()
|
|||
{
|
||||
const auto item = GetSelection();
|
||||
if (selection.is_single_full_object()) {
|
||||
if (m_objects_model->GetItemType(m_objects_model->GetParent(item)) & itObject &&
|
||||
if (m_objects_model->GetItemType(m_objects_model->GetParent(item)) & (itObject | itLayerRoot | itLayer) &&
|
||||
m_objects_model->GetObjectIdByItem(item) == selection.get_object_idx() )
|
||||
return;
|
||||
sels.Add(m_objects_model->GetItemById(selection.get_object_idx()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue