diff options
| author | Pepper <pepper@scannerjammer.com> | 2015-02-14 22:12:35 -0500 |
|---|---|---|
| committer | Pepper <pepper@scannerjammer.com> | 2015-02-14 22:12:35 -0500 |
| commit | 3610c64c237509ca8016bf2575e3d14a211b2a68 (patch) | |
| tree | f608afdefc96b069b1ed757dcf2f861a7d37922b /js/3D_Landscape.js | |
| parent | 26abd0b6097e9af3f774824ccf36028841c47ce0 (diff) | |
fixed spacebar
Diffstat (limited to 'js/3D_Landscape.js')
| -rw-r--r-- | js/3D_Landscape.js | 9 |
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
+ },
]);
}
|
