FIX: always have 0th filament in ams mapping
1. Only set the filament id in map when flush length is not 0 jira:NEW Signed-off-by: xun.zhang <xun.zhang@bambulab.com> Change-Id: I6e0aeaf010f6e6dcbdc3bca5c0034aa60750bb67
This commit is contained in:
parent
096841c2c5
commit
3006b163d0
|
@ -807,6 +807,7 @@ void GCodeProcessor::UsedFilaments::process_support_cache(GCodeProcessor* proces
|
|||
|
||||
void GCodeProcessor::UsedFilaments::update_flush_per_filament(size_t extrude_id, float flush_volume)
|
||||
{
|
||||
if (flush_volume != 0.f) {
|
||||
if (flush_per_filament.find(extrude_id) != flush_per_filament.end())
|
||||
flush_per_filament[extrude_id] += flush_volume;
|
||||
else
|
||||
|
@ -816,6 +817,7 @@ void GCodeProcessor::UsedFilaments::update_flush_per_filament(size_t extrude_id,
|
|||
total_volumes_per_extruder[extrude_id] += flush_volume;
|
||||
else
|
||||
total_volumes_per_extruder[extrude_id] = flush_volume;
|
||||
}
|
||||
}
|
||||
|
||||
void GCodeProcessor::UsedFilaments::process_role_cache(GCodeProcessor* processor)
|
||||
|
|
Loading…
Reference in New Issue