Reinstate L/l for growing/shrinking vector normal length

This commit is contained in:
hasufell 2014-06-06 22:39:57 +02:00
parent 6ccca351e8
commit 9ae8fac4e2
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020
1 changed files with 7 additions and 6 deletions

View File

@ -277,12 +277,13 @@ static bool process_keypress(SDL_KeyboardEvent *key_event)
case 'f': case 'f':
draw_frame = !draw_frame; draw_frame = !draw_frame;
break; break;
/* case 'k': */ case 'l':
/* draw_normals(obj, 0.01f); */ if (mod & KMOD_SHIFT) {
/* break; */ draw_normals(obj, 0.01f);
/* case 'l': */ } else {
/* draw_normals(obj, -0.01f); */ draw_normals(obj, -0.01f);
/* break; */ }
break;
case 'w': case 'w':
glTranslatef(0.0f, 1.0f, 0.0f); glTranslatef(0.0f, 1.0f, 0.0f);
break; break;