mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-18 19:12:17 +00:00
FIX: empty filament map
1.Caused by uninitialized filament map in mapping for AMS jira:NONE Signed-off-by: xun.zhang <xun.zhang@bambulab.com> Change-Id: I71ce6001fc6f2e72eb9303fcaba0bac16ad70dc9 (cherry picked from commit 48023e4c154c118c9396b6065b7e2476970fd441)
This commit is contained in:
@@ -241,7 +241,7 @@ namespace Slic3r
|
||||
}
|
||||
}
|
||||
|
||||
if (tmp_cost < ams_color_dist_threshold && tmp_cost < best_cost) {
|
||||
if (best_map.empty() || (tmp_cost < ams_color_dist_threshold && tmp_cost < best_cost)) {
|
||||
best_cost = tmp_cost;
|
||||
best_map = map;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user