From 9ae8fac4e21d2b5cad01dd46ab16f596ad2e9f82 Mon Sep 17 00:00:00 2001 From: hasufell Date: Fri, 6 Jun 2014 22:39:57 +0200 Subject: [PATCH] Reinstate L/l for growing/shrinking vector normal length --- src/gl_setup.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/gl_setup.c b/src/gl_setup.c index 5c824cf..e7877ad 100644 --- a/src/gl_setup.c +++ b/src/gl_setup.c @@ -277,12 +277,13 @@ static bool process_keypress(SDL_KeyboardEvent *key_event) case 'f': draw_frame = !draw_frame; break; - /* case 'k': */ - /* draw_normals(obj, 0.01f); */ - /* break; */ - /* case 'l': */ - /* draw_normals(obj, -0.01f); */ - /* break; */ + case 'l': + if (mod & KMOD_SHIFT) { + draw_normals(obj, 0.01f); + } else { + draw_normals(obj, -0.01f); + } + break; case 'w': glTranslatef(0.0f, 1.0f, 0.0f); break;