mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Do not allow to apply reload from disk command to objects splitted using split to objects or split to volumes commands
This commit is contained in:
parent
fd3651d994
commit
750ea439bb
1 changed files with 4 additions and 0 deletions
|
@ -1302,6 +1302,8 @@ void ModelObject::split(ModelObjectPtrs* new_objects)
|
||||||
}
|
}
|
||||||
|
|
||||||
new_vol->set_offset(Vec3d::Zero());
|
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);
|
new_objects->emplace_back(new_object);
|
||||||
delete mesh;
|
delete mesh;
|
||||||
}
|
}
|
||||||
|
@ -1668,6 +1670,8 @@ size_t ModelVolume::split(unsigned int max_extruders)
|
||||||
this->calculate_convex_hull();
|
this->calculate_convex_hull();
|
||||||
// Assign a new unique ID, so that a new GLVolume will be generated.
|
// Assign a new unique ID, so that a new GLVolume will be generated.
|
||||||
this->set_new_unique_id();
|
this->set_new_unique_id();
|
||||||
|
// reset the source to disable reload from disk
|
||||||
|
this->source = ModelVolume::Source();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
this->object->volumes.insert(this->object->volumes.begin() + (++ivolume), new ModelVolume(object, *this, std::move(*mesh)));
|
this->object->volumes.insert(this->object->volumes.begin() + (++ivolume), new ModelVolume(object, *this, std::move(*mesh)));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue