1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-13 08:24:27 +00:00

Implemented Copy/Paste for Layers.

+ improved selection (in respect to the Layers)
This commit is contained in:
YuSanka
2019-06-10 15:22:09 +02:00
parent 2fa87044be
commit 2b6e5a0a70
3 changed files with 120 additions and 47 deletions
+2 -1
View File
@@ -1174,7 +1174,8 @@ int ObjectDataViewModel::GetItemIdByLayerRange(const int obj_idx, const t_layer
int ObjectDataViewModel::GetIdByItem(const wxDataViewItem& item) const
{
wxASSERT(item.IsOk());
if(!item.IsOk())
return -1;
ObjectDataViewModelNode *node = (ObjectDataViewModelNode*)item.GetID();
auto it = find(m_objects.begin(), m_objects.end(), node);