mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-30 16:42:43 +00:00
Use AMF object and volume metadata for handling per-object and per-volume settings
This commit is contained in:
@@ -321,7 +321,7 @@ ModelVolume::ModelVolume(ModelObject* object, const TriangleMesh &mesh)
|
||||
{}
|
||||
|
||||
ModelVolume::ModelVolume(ModelObject* object, const ModelVolume &other)
|
||||
: object(object), mesh(other.mesh), modifier(other.modifier)
|
||||
: object(object), mesh(other.mesh), config(other.config), modifier(other.modifier)
|
||||
{
|
||||
this->material_id(other.material_id());
|
||||
}
|
||||
|
||||
@@ -139,6 +139,7 @@ class ModelVolume
|
||||
friend class ModelObject;
|
||||
public:
|
||||
TriangleMesh mesh;
|
||||
DynamicPrintConfig config;
|
||||
bool modifier;
|
||||
|
||||
ModelObject* get_object() const { return this->object; };
|
||||
|
||||
@@ -167,6 +167,8 @@ ModelMaterial::attributes()
|
||||
%code%{ THIS->material_id(material_id); %};
|
||||
Ref<ModelMaterial> material();
|
||||
|
||||
Ref<DynamicPrintConfig> config()
|
||||
%code%{ RETVAL = &THIS->config; %};
|
||||
Ref<TriangleMesh> mesh()
|
||||
%code%{ RETVAL = &THIS->mesh; %};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user