Bladeren bron

Editor: Bugfix Export of VR-App (#8997)

Michael Herzog 9 jaren geleden
bovenliggende
commit
df810c1395
2 gewijzigde bestanden met toevoegingen van 14 en 0 verwijderingen
  1. 12 0
      editor/js/Menubar.File.js
  2. 2 0
      editor/js/libs/app/index.html

+ 12 - 0
editor/js/Menubar.File.js

@@ -248,6 +248,18 @@ Menubar.File = function ( editor ) {
 
 		} );
 
+		loader.load( '../examples/js/controls/VRControls.js', function ( content ) {
+
+			zip.file( 'js/VRControls.js', content );
+
+		} );
+
+		loader.load( '../examples/js/effects/VREffect.js', function ( content ) {
+
+			zip.file( 'js/VREffect.js', content );
+
+		} );
+
 	} );
 	options.add( option );
 

+ 2 - 0
editor/js/libs/app/index.html

@@ -30,6 +30,8 @@
 	<body ontouchstart="">
 		<script src="js/three.min.js"></script>
 		<script src="js/app.js"></script>
+		<script src="js/VRControls.js"></script>
+		<script src="js/VREffect.js"></script>
 		<script>
 
 			var loader = new THREE.XHRLoader();