Skip to content

Commit df810c1

Browse files
Mugen87mrdoob
authored andcommitted
Editor: Bugfix Export of VR-App (mrdoob#8997)
1 parent 2514385 commit df810c1

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

editor/js/Menubar.File.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,18 @@ Menubar.File = function ( editor ) {
248248

249249
} );
250250

251+
loader.load( '../examples/js/controls/VRControls.js', function ( content ) {
252+
253+
zip.file( 'js/VRControls.js', content );
254+
255+
} );
256+
257+
loader.load( '../examples/js/effects/VREffect.js', function ( content ) {
258+
259+
zip.file( 'js/VREffect.js', content );
260+
261+
} );
262+
251263
} );
252264
options.add( option );
253265

editor/js/libs/app/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
<body ontouchstart="">
3131
<script src="js/three.min.js"></script>
3232
<script src="js/app.js"></script>
33+
<script src="js/VRControls.js"></script>
34+
<script src="js/VREffect.js"></script>
3335
<script>
3436

3537
var loader = new THREE.XHRLoader();

0 commit comments

Comments
 (0)