Skip to content

Commit

Permalink
Merge pull request #19825 from Mugen87/dev46
Browse files Browse the repository at this point in the history
Examples: Fix controls in MD2 demo.
  • Loading branch information
mrdoob committed Jul 10, 2020
2 parents 8702272 + a5e4dfd commit 10a5af1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions examples/webgl_loader_md2_control.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@

cameraControls = new OrbitControls( camera, renderer.domElement );
cameraControls.target.set( 0, 50, 0 );
cameraControls.enableKeys = false;
cameraControls.update();

// CHARACTER
Expand Down Expand Up @@ -247,8 +248,6 @@

function onKeyDown( event ) {

event.stopPropagation();

switch ( event.keyCode ) {

case 38: /*up*/
Expand All @@ -273,8 +272,6 @@

function onKeyUp( event ) {

event.stopPropagation();

switch ( event.keyCode ) {

case 38: /*up*/
Expand Down

0 comments on commit 10a5af1

Please sign in to comment.