From f6cd44aa3a1d803dc8d45c3550f8b777d4c88ba1 Mon Sep 17 00:00:00 2001
From: zhongshujie <2862698242@qq.com>
Date: 星期六, 19 七月 2025 23:31:30 +0800
Subject: [PATCH] 学前教育评价全本

---
 public/static/modelView/js/main.js |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/public/static/modelView/js/main.js b/public/static/modelView/js/main.js
index 6e50cc4..03e0d1b 100644
--- a/public/static/modelView/js/main.js
+++ b/public/static/modelView/js/main.js
@@ -262,6 +262,7 @@
   const dataS = getUrlParams();
   // const str = dataS.domain + '/file/api/ApiDownload?md5=' + dataS.md5
   let str = "";
+  let exd = dataS.exd;
   if (dataS.token != null || dataS.token != undefined) {
     str =
       dataS.domain +
@@ -276,7 +277,12 @@
     },
   ];
   var sceneInfo = modelList[index]; //index from array of sample models in html select options
-  loader = new THREE.FBXLoader(manager);
+  if (exd == "obj") {
+    loader = new THREE.OBJLoader(manager);
+  }
+  if (exd == "fbx" || !exd) {
+    loader = new THREE.FBXLoader(manager);
+  }
   var url = sceneInfo.url;
 
   //progress/loading bar

--
Gitblit v1.9.1