From d0d3c5ad164266dbaf48e58a00c92f8197a2fb18 Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Wed, 4 Aug 2021 10:25:15 +0200 Subject: [PATCH] Fix of variable layer height mode opening from ObjectList: when the respective object info line was clicked, the variable layer height mode was opened correctly, but closing it through the toolbar deactivated most of the icons as if it was just opened. --- src/slic3r/GUI/Plater.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index be44d32a48..723c93da21 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -5250,7 +5250,7 @@ void Plater::convert_unit(ConversionType conv_type) void Plater::toggle_layers_editing(bool enable) { if (canvas3D()->is_layers_editing_enabled() != enable) - wxPostEvent(canvas3D()->get_wxglcanvas(), SimpleEvent(EVT_GLTOOLBAR_LAYERSEDITING)); + canvas3D()->force_main_toolbar_left_action(canvas3D()->get_main_toolbar_item_id("layersediting")); } void Plater::cut(size_t obj_idx, size_t instance_idx, coordf_t z, ModelObjectCutAttributes attributes)