From 4eb82bda626d40f10c1f41853de5776d7422a09d Mon Sep 17 00:00:00 2001 From: bubnikv Date: Wed, 21 Nov 2018 09:35:49 +0100 Subject: [PATCH] Fix of "split volume to parts" to regenerate a new GLVolume even for the first part. --- src/libslic3r/Model.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libslic3r/Model.cpp b/src/libslic3r/Model.cpp index 03fd1bd97..3801c5b12 100644 --- a/src/libslic3r/Model.cpp +++ b/src/libslic3r/Model.cpp @@ -1300,6 +1300,8 @@ size_t ModelVolume::split(unsigned int max_extruders) { this->mesh = std::move(*mesh); this->calculate_convex_hull(); + // Assign a new unique ID, so that a new GLVolume will be generated. + this->set_new_unique_id(); } else this->object->volumes.insert(this->object->volumes.begin() + (++ivolume), new ModelVolume(object, *this, std::move(*mesh)));