From 628d2a2614234e97c8676a99186e8efcdff3fd50 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Thu, 22 Aug 2019 15:42:23 +0200 Subject: [PATCH] Fixed "split to part" for Undo/Redo stack --- src/slic3r/GUI/GUI_ObjectList.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/GUI_ObjectList.cpp b/src/slic3r/GUI/GUI_ObjectList.cpp index d4f5d79a9..eba5ea885 100644 --- a/src/slic3r/GUI/GUI_ObjectList.cpp +++ b/src/slic3r/GUI/GUI_ObjectList.cpp @@ -1972,13 +1972,15 @@ void ObjectList::split() DynamicPrintConfig& config = printer_config(); const ConfigOption *nozzle_dmtrs_opt = config.option("nozzle_diameter", false); const auto nozzle_dmrs_cnt = (nozzle_dmtrs_opt == nullptr) ? size_t(1) : dynamic_cast(nozzle_dmtrs_opt)->values.size(); - if (volume->split(nozzle_dmrs_cnt) == 1) { + if (!volume->is_splittable()) { wxMessageBox(_(L("The selected object couldn't be split because it contains only one part."))); return; } take_snapshot(_(L("Split to Parts"))); + volume->split(nozzle_dmrs_cnt); + wxBusyCursor wait; auto model_object = (*m_objects)[obj_idx];