mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-02 13:00:28 -07:00
FIX:The additional colors need to be found corresponding to them
jira: STUDIO-13871 Change-Id: Ia96b41278198b02ffb3b878e6584b83e860ab87a (cherry picked from commit 7020e92ec8fdccd499e0d870965818b3e6dcdb07)
This commit is contained in:
parent
bd066e7f96
commit
2cb963852b
1 changed files with 13 additions and 1 deletions
|
|
@ -814,10 +814,22 @@ void ObjColorPanel::update_new_add_final_colors()
|
|||
} else {
|
||||
m_max_filament_index = 0;
|
||||
}
|
||||
|
||||
if (m_max_filament_index <= m_colours.size()) { // Fix 20240904
|
||||
m_new_add_final_colors.clear();
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
m_new_add_final_colors.resize(m_max_filament_index - m_colours.size());
|
||||
for (int ii = m_colours.size() ; ii < m_max_filament_index; ii++) {
|
||||
for (int j = 0; j < m_cluster_map_filaments.size(); j++) {
|
||||
if (m_cluster_map_filaments[j] == (ii+ 1) && j < m_new_add_colors.size()) {
|
||||
auto index = ii - m_colours.size();
|
||||
if (index < m_new_add_final_colors.size()) {
|
||||
m_new_add_final_colors[index] = m_new_add_colors[j];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (m_new_add_final_colors.size() > 0) {
|
||||
m_is_add_filament = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue