From 3bddf2afff064a28c79f236ccf4616a33d649648 Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Thu, 13 Dec 2018 08:55:19 +0100 Subject: [PATCH] Selection's debug output set as optional --- src/libslic3r/Technologies.hpp | 2 ++ src/slic3r/GUI/GLCanvas3D.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/libslic3r/Technologies.hpp b/src/libslic3r/Technologies.hpp index 2bd3e2b2a..cef735db0 100644 --- a/src/libslic3r/Technologies.hpp +++ b/src/libslic3r/Technologies.hpp @@ -7,6 +7,8 @@ // Shows camera target in the 3D scene #define ENABLE_SHOW_CAMERA_TARGET 0 +// Log debug messages to console when changing selection +#define ENABLE_SELECTION_DEBUG_OUTPUT 0 //============= // 1.42.0 techs diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index 74a472464..96d9ac4d5 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -2116,6 +2116,7 @@ void GLCanvas3D::Selection::_update_type() v->disabled = requires_disable ? (v->object_idx() != object_idx) || (v->instance_idx() != instance_idx) : false; } +#if ENABLE_SELECTION_DEBUG_OUTPUT std::cout << "Selection: "; std::cout << "mode: "; switch (m_mode) @@ -2197,6 +2198,7 @@ void GLCanvas3D::Selection::_update_type() break; } } +#endif // ENABLE_SELECTION_DEBUG_OUTPUT } void GLCanvas3D::Selection::_set_caches()