2
0
Эх сурвалжийг харах

Add helio polyfill to editor

Wolfgang Meyers 5 жил өмнө
parent
commit
2b52a5409e

+ 1 - 0
editor/index.html

@@ -42,6 +42,7 @@
 		<script src="js/libs/ternjs/doc_comment.js"></script>
 		<script src="js/libs/tern-threejs/threejs.js"></script>
 		<script src="js/libs/signals.min.js"></script>
+		<script src="../examples/js/vr/HelioWebXRPolyfill.js"></script>
 
 		<script type="module">
 

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

@@ -417,7 +417,14 @@ var MenubarFile = function ( editor ) {
 
 		} );
 		loader.load( '../examples/jsm/webxr/VRButton.js', function ( content ) {
+
 			zip.file( 'js/VRButton.js', content );
+
+		} );
+		loader.load( '../examples/js/vr/HelioWebXRPolyfill.js', function ( content ) {
+
+			zip.file( 'js/HelioWebXRPolyfill.js', content );
+
 		} );
 
 	} );

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

@@ -16,6 +16,7 @@
 		</style>
 	</head>
 	<body ontouchstart="">
+		<script src="../examples/js/vr/HelioWebXRPolyfill.js"></script>
 
 		<script type="module">