mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +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:
@@ -24,6 +24,7 @@
|
||||
namespace Slic3r {
|
||||
|
||||
const static bool g_wipe_into_objects = false;
|
||||
constexpr double similar_color_threshold_de2000 = 20.0;
|
||||
|
||||
static std::set<int>get_filament_by_type(const std::vector<unsigned int>& used_filaments, const PrintConfig* print_config, const std::string& type)
|
||||
{
|
||||
@@ -1003,7 +1004,7 @@ std::vector<int> ToolOrdering::get_recommended_filament_maps(const std::vector<s
|
||||
colors.emplace_back(item.option<ConfigOptionStrings>("filament_colour")->get_at(0));
|
||||
ams_colors[i] = std::move(colors);
|
||||
}
|
||||
ret = select_best_group_for_ams(memoryed_maps, used_filaments, used_colors, ams_colors);
|
||||
ret = select_best_group_for_ams(memoryed_maps, used_filaments, used_colors, ams_colors, similar_color_threshold_de2000);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user