Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuSanka <yusanka@gmail.com>2020-01-07 17:22:18 +0300
committerYuSanka <yusanka@gmail.com>2020-01-07 17:22:47 +0300
commitca950d1a007cd83f075c9fbdb5b9c115a0b49b99 (patch)
tree7aeb0eeb206193bc1f740620383100d578d77f46 /src/slic3r/GUI/Preset.hpp
parent81187e7e0e1586117ca3b1d8b2f708f2b1e14400 (diff)
Added check for a preset visibility in a first_compatible_idx() function
(related to #3470)
Diffstat (limited to 'src/slic3r/GUI/Preset.hpp')
-rw-r--r--src/slic3r/GUI/Preset.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/slic3r/GUI/Preset.hpp b/src/slic3r/GUI/Preset.hpp
index 55791eb09..19d07d007 100644
--- a/src/slic3r/GUI/Preset.hpp
+++ b/src/slic3r/GUI/Preset.hpp
@@ -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)