mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-19 04:57:37 +08:00
Added check for a preset visibility in a first_compatible_idx() function
(related to #3470)
This commit is contained in:
parent
81187e7e0e
commit
ca950d1a00
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user