Explorar el Código

Editor: Updated WebVR.js usage.

Mr.doob hace 7 años
padre
commit
fd8922a949
Se han modificado 1 ficheros con 1 adiciones y 12 borrados
  1. 1 12
      editor/js/libs/app.js

+ 1 - 12
editor/js/libs/app.js

@@ -113,18 +113,7 @@ var APP = {
 
 			if ( renderer.vr.enabled ) {
 
-				WEBVR.checkAvailability().catch( function( message ) {
-
-					dom.appendChild( WEBVR.getMessageContainer( message ) );
-
-				} );
-
-				WEBVR.getVRDisplay( function ( device ) {
-
-					renderer.vr.setDevice( device );
-					dom.appendChild( WEBVR.getButton( device, renderer.domElement ) );
-
-				} );
+				dom.appendChild( WEBVR.createButton( renderer ) );
 
 			}