FIX:m_max_filament_index should init to 0

jira: none
Change-Id: I9a42b43ee31d27579d7624f20e49d71b4e6446b5
This commit is contained in:
zhou.xu 2025-04-07 16:42:12 +08:00 committed by lane.wei
parent 17078abc0e
commit c1f1b96cff
1 changed files with 2 additions and 1 deletions

View File

@ -680,6 +680,7 @@ void ObjColorPanel::deal_approximate_match_btn()
if (m_result_icon_list.size() == 0) { return; } if (m_result_icon_list.size() == 0) { return; }
auto map_count = m_result_icon_list[0]->bitmap_combox->GetCount() -1; auto map_count = m_result_icon_list[0]->bitmap_combox->GetCount() -1;
if (map_count < 1) { return; } if (map_count < 1) { return; }
m_max_filament_index = 0;
for (size_t i = 0; i < m_cluster_colours.size(); i++) { for (size_t i = 0; i < m_cluster_colours.size(); i++) {
auto c = m_cluster_colours[i]; auto c = m_cluster_colours[i];
std::vector<ColorDistValue> color_dists; std::vector<ColorDistValue> color_dists;