mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Fixed object adding to list with same object's name
+ Added name for main object for complex objects + Fixed incorrect Instances and Settings deleting from ObjectList
This commit is contained in:
parent
d7f013ba19
commit
5557ee3cd2
4 changed files with 8 additions and 4 deletions
|
@ -789,7 +789,7 @@ void PrusaObjectDataViewModel::GetItemInfo(const wxDataViewItem& item, ItemType&
|
|||
type = itUndef;
|
||||
|
||||
PrusaObjectDataViewModelNode *node = (PrusaObjectDataViewModelNode*)item.GetID();
|
||||
if (!node || node->GetIdx() < 0 && node->GetType() != itObject)
|
||||
if (!node || node->GetIdx() < 0 && !(node->GetType() & (itObject|itSettings|itInstanceRoot)))
|
||||
return;
|
||||
|
||||
idx = node->GetIdx();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue