Selection's debug output set as optional

This commit is contained in:
Enrico Turri 2018-12-13 08:55:19 +01:00
parent b856775e18
commit 3bddf2afff
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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()