mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
FIX: backend get the extruder id based on filament_map
Change-Id: Ib7679c0fc67336e462467dab9f5b4d4684d6eb19 (cherry picked from commit dcd9fd501354da33baea2adc0f645fabe8880cf1)
This commit is contained in:
@@ -53,9 +53,11 @@ namespace Slic3r {
|
||||
#define L(s) (s)
|
||||
#define _(s) Slic3r::I18N::translate(s)
|
||||
|
||||
size_t get_extruder_index(unsigned int filament_id)
|
||||
size_t get_extruder_index(const GCodeConfig& config, unsigned int filament_id)
|
||||
{
|
||||
// todo multi_extruders:
|
||||
if (filament_id < config.filament_map.size()) {
|
||||
return config.filament_map.get_at(filament_id);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user