mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-11-02 04:31:17 -07:00
Use AMF object and volume metadata for handling per-object and per-volume settings
This commit is contained in:
parent
4d67f902b6
commit
f82a8475a1
7 changed files with 47 additions and 27 deletions
|
|
@ -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; %};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue