Fixed "setting an extruder does not change object's color"

This commit is contained in:
bubnikv 2018-11-22 13:20:13 +01:00
parent 94b1183843
commit a4be8ef6ad
4 changed files with 30 additions and 17 deletions

View file

@ -312,6 +312,10 @@ public:
void set_material_id(t_model_material_id material_id);
ModelMaterial* material() const;
void set_material(t_model_material_id material_id, const ModelMaterial &material);
// Extract the current extruder ID based on this ModelVolume's config and the parent ModelObject's config.
// Extruder ID is only valid for FFF. Returns -1 for SLA or if the extruder ID is not applicable (support volumes).
int extruder_id() const;
// Split this volume, append the result to the object owning this volume.
// Return the number of volumes created from this one.
// This is useful to assign different materials to different volumes of an object.