xzw 1 year ago
parent
commit
86029cb9a7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/sdk/cover/index.js

+ 2 - 2
src/sdk/cover/index.js

@@ -470,10 +470,10 @@ export const enter = (dom, isLocal) => {
             }
             let getDefaultRotation = ()=>{
                 //0看看,1看见,2深时,3用户上传三维模型,4深时mesh,5深光点云,6深光mesh
-                if(props.fromType == 1 || props.fromType == 4 || props.fromType == 6 ){//来自4dkk的3dtiles初始需要转90度
+                if(props.fromType == 1 || props.fromType == 6 || props.fromType == 4 && props.type != 'glb'    ){//来自4dkk的3dtiles初始需要转90度
                     return new THREE.Euler(Math.PI/2, 0,0)
                 }else return new THREE.Euler(0,0,0)
-            } 
+            }
 
 
             if(!props.isFirstLoad){