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);