From 17fd8e26cdc10a452d6acccc939ef7f8cd23ed50 Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Sun, 18 Nov 2018 16:44:08 -0600 Subject: [PATCH] Clear the preset name map list during load --- src/GUI/Plater/PresetChooser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/GUI/Plater/PresetChooser.cpp b/src/GUI/Plater/PresetChooser.cpp index bc2133b66..8e45fae3c 100644 --- a/src/GUI/Plater/PresetChooser.cpp +++ b/src/GUI/Plater/PresetChooser.cpp @@ -71,6 +71,7 @@ void PresetChooser::load(std::array presets) { size_t i {0}; std::vector preset_names {}; + __chooser_names[get_preset(group)].clear(); // populate the chooser for (auto* chooser : this->preset_choosers[get_preset(group)]) { chooser->Clear();