Added check for a preset visibility in a first_compatible_idx() function

(related to #3470)
This commit is contained in:
YuSanka 2020-01-07 15:22:18 +01:00
parent 81187e7e0e
commit ca950d1a00

View file

@ -383,7 +383,8 @@ public:
size_t n = this->m_presets.size();
size_t i_compatible = n;
for (; i < n; ++ i)
if (m_presets[i].is_compatible) {
// Since we use the filament selection from Wizard, it's needed to control the preset visibility too
if (m_presets[i].is_compatible && m_presets[i].is_visible) {
if (prefered_condition(m_presets[i].name))
return i;
if (i_compatible == n)