From bbbcd36113a4ec76565b7193b1af35d593609455 Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Sun, 18 Nov 2018 17:18:05 -0600 Subject: [PATCH] When filtering default values out, it helps to not use the original source and clobber the compatibilty list. --- src/GUI/Plater/PresetChooser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GUI/Plater/PresetChooser.cpp b/src/GUI/Plater/PresetChooser.cpp index 8e45fae3c..d6ab80896 100644 --- a/src/GUI/Plater/PresetChooser.cpp +++ b/src/GUI/Plater/PresetChooser.cpp @@ -63,7 +63,7 @@ void PresetChooser::load(std::array presets) { // show default names if no other presets visible. if (current_list.size() > 1) { - current_list = grep(presets.at(get_preset(group)), [] (const Preset& x) -> bool { return !x.default_preset; }); + current_list = grep(current_list, [] (const Preset& x) -> bool { return !x.default_preset; }); } // # Read the current defaults from the settings file