mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-17 03:37:54 -06:00
Store object and volume names in the new 'name' property instead of relying on material id
This commit is contained in:
parent
f590bbb430
commit
aacc01a56f
10 changed files with 50 additions and 24 deletions
|
@ -186,6 +186,7 @@ ModelObject::ModelObject(Model *model)
|
|||
|
||||
ModelObject::ModelObject(Model *model, const ModelObject &other)
|
||||
: model(model),
|
||||
name(other.name),
|
||||
input_file(other.input_file),
|
||||
instances(),
|
||||
volumes(),
|
||||
|
@ -321,7 +322,8 @@ ModelVolume::ModelVolume(ModelObject* object, const TriangleMesh &mesh)
|
|||
{}
|
||||
|
||||
ModelVolume::ModelVolume(ModelObject* object, const ModelVolume &other)
|
||||
: object(object), mesh(other.mesh), config(other.config), modifier(other.modifier)
|
||||
: object(object), name(other.name), mesh(other.mesh), config(other.config),
|
||||
modifier(other.modifier)
|
||||
{
|
||||
this->material_id(other.material_id());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue