Explorar o código

Editor: Updated WebVR.js usage.

Mr.doob %!s(int64=7) %!d(string=hai) anos
pai
achega
fd8922a949
Modificáronse 1 ficheiros con 1 adicións e 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 ) );
 
 			}