From 00db58c82389ec736af112549bb3e3bc65185ef7 Mon Sep 17 00:00:00 2001 From: Filip Sykala - NTB T15p Date: Fri, 23 Sep 2022 12:58:01 +0200 Subject: [PATCH] Disallow arrange and add instance when emboss gizmo is opend -- prevent strobo effect during editing emboss parameters. Fix issue 40 --- src/slic3r/GUI/Plater.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 32c4af286..9b212f5b1 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -4935,6 +4935,8 @@ bool Plater::priv::can_increase_instances() const || q->canvas3D()->get_gizmos_manager().is_in_editing_mode()) return false; + if (q->canvas3D()->get_gizmos_manager().get_current_type() == GLGizmosManager::Emboss) return false; + int obj_idx = get_selected_object_idx(); return (0 <= obj_idx) && (obj_idx < (int)model.objects.size()); } @@ -4961,7 +4963,9 @@ bool Plater::priv::can_split_to_volumes() const bool Plater::priv::can_arrange() const { - return !model.objects.empty() && m_worker.is_idle(); + if (model.objects.empty() && m_worker.is_idle()) return false; + if (q->canvas3D()->get_gizmos_manager().get_current_type() == GLGizmosManager::Emboss) return false; + return true; } bool Plater::priv::can_layers_editing() const