|
@@ -468,7 +468,7 @@ 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)
|
|
|
}
|