FIX:m_max_filament_index should init to 0
jira: none Change-Id: I9a42b43ee31d27579d7624f20e49d71b4e6446b5
This commit is contained in:
parent
17078abc0e
commit
c1f1b96cff
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue