Fixed crash under oSX after selection with SHIFT from 3DScene

This commit is contained in:
YuSanka 2019-04-08 11:06:15 +02:00
parent 618d124bfb
commit af05e5fc2c

View File

@ -88,6 +88,10 @@ ObjectList::ObjectList(wxWindow* parent) :
// before the kill focus event handler on the object manipulator when changing selection in the list, invalidating the object
// manipulator cache with the following call to selection_changed()
wxGetApp().obj_manipul()->emulate_kill_focus();
// To avoid selection update from SetSelection() and UnselectAll() under osx
if (m_prevent_list_events)
return;
#endif // __APPLE__
/* For multiple selection with pressed SHIFT,