diff -r 17a88e2470c9 -r a86ae85a277c src/gui_actions.cc --- a/src/gui_actions.cc Fri Dec 20 13:35:08 2013 +0200 +++ b/src/gui_actions.cc Fri Dec 20 17:06:06 2013 +0200 @@ -37,11 +37,12 @@ #include "widgets.h" #include "colors.h" -extern_cfg (Bool, gl_wireframe); -extern_cfg (Bool, gl_colorbfc); -extern_cfg (String, ld_defaultname); -extern_cfg (String, ld_defaultuser); -extern_cfg (Int, ld_defaultlicense); +extern_cfg (Bool, gl_wireframe); +extern_cfg (Bool, gl_colorbfc); +extern_cfg (String, ld_defaultname); +extern_cfg (String, ld_defaultuser); +extern_cfg (Int, ld_defaultlicense); +extern_cfg (Bool, gl_drawangles); // ============================================================================= // ----------------------------------------------------------------------------- @@ -483,7 +484,7 @@ DEFINE_ACTION (VisibilityHide, 0) { for (LDObject* obj : selection()) obj->setHidden (true); - + g_win->refresh(); } @@ -492,7 +493,6 @@ DEFINE_ACTION (VisibilityReveal, 0) { for (LDObject* obj : selection()) obj->setHidden (false); - g_win->refresh(); } @@ -541,6 +541,13 @@ // ============================================================================= // ----------------------------------------------------------------------------- +DEFINE_ACTION (DrawAngles, 0) +{ gl_drawangles = !gl_drawangles; + g_win->R()->refresh(); +} + +// ============================================================================= +// ----------------------------------------------------------------------------- DEFINE_ACTION (SetDrawDepth, 0) { if (g_win->R()->camera() == GL::EFreeCamera) return;