From 9323e347f0d19382e177f7e0b7fa048154b7c18a Mon Sep 17 00:00:00 2001 From: YuSanka Date: Tue, 29 Nov 2022 12:59:05 +0100 Subject: [PATCH] ObjectList: Delete last volume from the object even if this volume is text --- src/slic3r/GUI/ObjectDataViewModel.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/slic3r/GUI/ObjectDataViewModel.cpp b/src/slic3r/GUI/ObjectDataViewModel.cpp index cfc78f9f8..fe57d7d5a 100644 --- a/src/slic3r/GUI/ObjectDataViewModel.cpp +++ b/src/slic3r/GUI/ObjectDataViewModel.cpp @@ -772,11 +772,7 @@ wxDataViewItem ObjectDataViewModel::Delete(const wxDataViewItem &item) // get index of the last VolumeItem in CildrenList size_t vol_idx = GetItemIndexForFirstVolume(node_parent); - ObjectDataViewModelNode *last_child_node = node_parent->GetNthChild(vol_idx); - // if last volume is text then don't delete it - if (last_child_node->is_text_volume()) - return parent; // delete this last volume DeleteSettings(wxDataViewItem(last_child_node));