Просмотр исходного кода

Editor: Fixed editor not loading on Chrome 129.0.6668.100 due to import maps definitions location.

Mr.doob 1 год назад
Родитель
Сommit
e754fce136
1 измененных файлов с 13 добавлено и 13 удалено
  1. 13 13
      editor/index.html

+ 13 - 13
editor/index.html

@@ -12,6 +12,19 @@
 	<body>
 		<link rel="stylesheet" href="css/main.css">
 
+		<script type="importmap">
+			{
+				"imports": {
+					"three": "../build/three.module.js",
+					"three/addons/": "../examples/jsm/",
+
+					"three/examples/": "../examples/",
+					"three-gpu-pathtracer": "https://cdn.jsdelivr.net/npm/three-gpu-pathtracer@0.0.23/build/index.module.js",
+					"three-mesh-bvh": "https://cdn.jsdelivr.net/npm/three-mesh-bvh@0.7.4/build/index.module.js"
+				}
+			}
+		</script>
+
 		<script src="../examples/jsm/libs/draco/draco_encoder.js"></script>
 
 		<link rel="stylesheet" href="js/libs/codemirror/codemirror.css">
@@ -45,19 +58,6 @@
 		<script src="js/libs/tern-threejs/threejs.js"></script>
 		<script src="js/libs/signals.min.js"></script>
 
-		<script type="importmap">
-			{
-				"imports": {
-					"three": "../build/three.module.js",
-					"three/addons/": "../examples/jsm/",
-
-					"three/examples/": "../examples/",
-					"three-gpu-pathtracer": "https://cdn.jsdelivr.net/npm/three-gpu-pathtracer@0.0.23/build/index.module.js",
-					"three-mesh-bvh": "https://cdn.jsdelivr.net/npm/three-mesh-bvh@0.7.4/build/index.module.js"
-				}
-			}
-		</script>
-
 		<script type="module">
 
 			import * as THREE from 'three';

粤ICP备19079148号