summaryrefslogtreecommitdiff
path: root/js/3D_Landscape.js
diff options
context:
space:
mode:
authorPepper <pepper@scannerjammer.com>2015-02-14 22:12:35 -0500
committerPepper <pepper@scannerjammer.com>2015-02-14 22:12:35 -0500
commit3610c64c237509ca8016bf2575e3d14a211b2a68 (patch)
treef608afdefc96b069b1ed757dcf2f861a7d37922b /js/3D_Landscape.js
parent26abd0b6097e9af3f774824ccf36028841c47ce0 (diff)
fixed spacebar
Diffstat (limited to 'js/3D_Landscape.js')
-rw-r--r--js/3D_Landscape.js9
1 files changed, 9 insertions, 0 deletions
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
+ },
]);
}