mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 10:32:20 +00:00
ENH: support recommended filament map when print by object
1. support recommended filament map when print by object 2. placeholder_parser support function filament_change 3. extruder_id of filament_map is start from 1 Change-Id: Ide8019cd4a165a25972f22706ff685c3005aa031 (cherry picked from commit b42d94e1d05236b8b7b2e65b4a24810eecf040cb)
This commit is contained in:
@@ -22,7 +22,7 @@ unsigned int Extruder::extruder_id() const
|
||||
{
|
||||
assert(m_config);
|
||||
if (m_id < m_config->filament_map.size()) {
|
||||
return m_config->filament_map.get_at(m_id);
|
||||
return m_config->filament_map.get_at(m_id) - 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user