From 3610c64c237509ca8016bf2575e3d14a211b2a68 Mon Sep 17 00:00:00 2001 From: Pepper Date: Sat, 14 Feb 2015 22:12:35 -0500 Subject: fixed spacebar --- js/3D_Landscape.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'js/3D_Landscape.js') diff --git a/js/3D_Landscape.js b/js/3D_Landscape.js index e0fd5e6..411bfe7 100644 --- a/js/3D_Landscape.js +++ b/js/3D_Landscape.js @@ -229,6 +229,15 @@ function init_controls(){ }, "this" : my_scope }, + { + "keys" : "space", + "is_exclusive" : true, + "on_keydown" : function() { + wf = !wf; + material.wireframe = wf; + }, + "this" : my_scope + }, ]); } -- cgit v1.2.3-70-g09d2