|
@@ -1158,8 +1158,8 @@ function benchRefresh(result) {
|
|
|
} else { // 台架变化,需移除原模型后重新添加新模型
|
|
|
// console.log("台架id变动")
|
|
|
oldBenchIds = newBenchIds;
|
|
|
- // 请求到的新台架id
|
|
|
|
|
|
+ // 请求到的新台架id
|
|
|
let new_bench_id_arr = [];
|
|
|
benchList.forEach(function (item) {
|
|
|
new_bench_id_arr.push(item.id);
|
|
@@ -1325,6 +1325,7 @@ export function uwbMain(domId, modelWidth, modelHeight, finalMode, callback) {
|
|
|
element.style.marginTop = ((height - (height * ratio)) / 2) + 'px';
|
|
|
let playersmall = document.getElementById('playersmall')
|
|
|
playersmall.appendChild(element)
|
|
|
+
|
|
|
modeChangeInterval = setInterval(() => {
|
|
|
if (window.sdkInstance.player.controls) {
|
|
|
clearInterval(modeChangeInterval);
|
|
@@ -1379,7 +1380,7 @@ export function uwbMain(domId, modelWidth, modelHeight, finalMode, callback) {
|
|
|
let pointLight = new THREE.PointLight(0xffffff, 1, 0);
|
|
|
pointLight.position.set(200, 200, 200); // 设置点光源位置
|
|
|
sdkInstance.sceneRenderer.scene.add(pointLight); // 将点光源添加至场景
|
|
|
-
|
|
|
+
|
|
|
if (g_gltf_downloaded == false) {
|
|
|
g_gltf_downloaded = true;
|
|
|
}
|
|
@@ -1584,6 +1585,7 @@ export function uwbMain(domId, modelWidth, modelHeight, finalMode, callback) {
|
|
|
// };
|
|
|
|
|
|
});
|
|
|
+
|
|
|
sdkInstance.on("modeChange", function (currentMode, newMode) {
|
|
|
if (newMode === "transitioning") {
|
|
|
return;
|