ENH:Obj import supports up to 32 colors

jira: STUDIO-10927
Change-Id: I46b2c63a625f91d0caafa78cf47bf0fc8589015b
(cherry picked from commit 9e2bfb7d7e56d886a85c0ee8c0e90dbc6ccfa932)
This commit is contained in:
zhou.xu 2025-03-18 12:16:46 +08:00 committed by Noisyfox
parent 7ca7ca18fb
commit c333cb58d9
5 changed files with 57 additions and 39 deletions

View file

@ -785,7 +785,7 @@ bool convert_obj_cluster_colors(std::vector<Slic3r::RGBA>& input_colors, std::ve
std::vector<int> cluster_labels;
char cluster_number = -1;
obj_color_deal_algo(input_colors, cluster_colors, cluster_labels, cluster_number);
obj_color_deal_algo(input_colors, cluster_colors, cluster_labels, cluster_number, (int)EnforcerBlockerType::ExtruderMax);
std::vector<int> cluster_color_maps;
BOOST_LOG_TRIVIAL(info) << boost::format("%1%:%2%, after obj_color_deal_algo, cluster_colors size %3%, all_colours size %4%, max_filament_count=%5%")%__FUNCTION__ %__LINE__%cluster_colors.size() %all_colours.size() %max_filament_count;