Bläddra i källkod

Editor: Remove WebVR support.

Mugen87 5 år sedan
förälder
incheckning
f4fb06ca86
5 ändrade filer med 1 tillägg och 42 borttagningar
  1. 0 2
      editor/index.html
  2. 1 18
      editor/js/Menubar.File.js
  3. 0 14
      editor/js/Sidebar.Project.js
  4. 0 6
      editor/js/libs/app.js
  5. 0 2
      editor/sw.js

+ 0 - 2
editor/index.html

@@ -86,8 +86,6 @@
 		<script src="js/Player.js"></script>
 		<script src="js/Script.js"></script>
 
-		<script src="../examples/js/vr/WebVR.js"></script>
-
 		<script src="js/EditorControls.js"></script>
 		<script src="js/Storage.js"></script>
 

+ 1 - 18
editor/js/Menubar.File.js

@@ -349,8 +349,6 @@ Menubar.File = function ( editor ) {
 		output.metadata.type = 'App';
 		delete output.history;
 
-		var vr = output.project.vr;
-
 		output = JSON.stringify( output, parseNumber, '\t' );
 		output = output.replace( /[\n\t]+([\d\.e\-\[\]]+)/g, '$1' );
 
@@ -373,12 +371,6 @@ Menubar.File = function ( editor ) {
 
 			var includes = [];
 
-			if ( vr ) {
-
-				includes.push( '<script src="js/WebVR.js"></script>' );
-
-			}
-
 			content = content.replace( '<!-- includes -->', includes.join( '\n\t\t' ) );
 
 			var editButton = '';
@@ -395,6 +387,7 @@ Menubar.File = function ( editor ) {
 					'			document.body.appendChild( button );',
 					''
 				].join( '\n' );
+
 			}
 
 			content = content.replace( '\n\t\t\t/* edit button */\n', editButton );
@@ -413,16 +406,6 @@ Menubar.File = function ( editor ) {
 
 		} );
 
-		if ( vr ) {
-
-			loader.load( '../examples/js/vr/WebVR.js', function ( content ) {
-
-				zip.file( 'js/WebVR.js', content );
-
-			} );
-
-		}
-
 	} );
 	options.add( option );
 

+ 0 - 14
editor/js/Sidebar.Project.js

@@ -52,20 +52,6 @@ Sidebar.Project = function ( editor ) {
 
 	projectsettings.add( editableRow );
 
-	// VR
-
-	var vrRow = new UI.Row();
-	var vr = new UI.Checkbox( config.getKey( 'project/vr' ) ).setLeft( '100px' ).onChange( function () {
-
-		config.setKey( 'project/vr', this.getValue() );
-
-	} );
-
-	vrRow.add( new UI.Text( strings.getKey( 'sidebar/project/vr' ) ).setWidth( '90px' ) );
-	vrRow.add( vr );
-
-	projectsettings.add( vrRow );
-
 	// Renderer
 
 	var options = {};

+ 0 - 6
editor/js/libs/app.js

@@ -110,12 +110,6 @@ var APP = {
 			camera.aspect = this.width / this.height;
 			camera.updateProjectionMatrix();
 
-			if ( renderer.xr.enabled ) {
-
-				dom.appendChild( THREE.WEBVR.createButton( renderer ) );
-
-			}
-
 		};
 
 		this.setScene = function ( value ) {

+ 0 - 2
editor/sw.js

@@ -88,8 +88,6 @@ const assets = [
 	'./js/Player.js',
 	'./js/Script.js',
 
-	'../examples/js/vr/WebVR.js',
-
 	//
 
 	'./css/main.css',