From 750ea439bb0f673c525eaa6f7cf54057f5ce516e Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Thu, 19 Dec 2019 08:05:57 +0100 Subject: [PATCH] Do not allow to apply reload from disk command to objects splitted using split to objects or split to volumes commands --- src/libslic3r/Model.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libslic3r/Model.cpp b/src/libslic3r/Model.cpp index 7137527e9f..8c281318e2 100644 --- a/src/libslic3r/Model.cpp +++ b/src/libslic3r/Model.cpp @@ -1302,6 +1302,8 @@ void ModelObject::split(ModelObjectPtrs* new_objects) } new_vol->set_offset(Vec3d::Zero()); + // reset the source to disable reload from disk + new_vol->source = ModelVolume::Source(); new_objects->emplace_back(new_object); delete mesh; } @@ -1668,6 +1670,8 @@ size_t ModelVolume::split(unsigned int max_extruders) this->calculate_convex_hull(); // Assign a new unique ID, so that a new GLVolume will be generated. this->set_new_unique_id(); + // reset the source to disable reload from disk + this->source = ModelVolume::Source(); } else this->object->volumes.insert(this->object->volumes.begin() + (++ivolume), new ModelVolume(object, *this, std::move(*mesh)));