From 9e56625287f2563ad974a266593821d49af5efbd Mon Sep 17 00:00:00 2001 From: YuSanka Date: Wed, 19 Apr 2023 09:55:45 +0200 Subject: [PATCH] Fix for #10319 - MacOS 2.6 Alpha6 Crash on project load This issue was not related to the OS and was caused by bug inside export function. Wrong object id was saved for the cut objects --- src/libslic3r/Format/3mf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/Format/3mf.cpp b/src/libslic3r/Format/3mf.cpp index 1b3a95d1c..d08e3be31 100644 --- a/src/libslic3r/Format/3mf.cpp +++ b/src/libslic3r/Format/3mf.cpp @@ -2958,9 +2958,9 @@ namespace Slic3r { unsigned int object_cnt = 0; for (const ModelObject* object : model.objects) { + object_cnt++; if (!object->is_cut()) continue; - object_cnt++; pt::ptree& obj_tree = tree.add("objects.object", ""); obj_tree.put(".id", object_cnt);