浏览代码

Merge branch 'v1.2.0-ga' of http://192.168.0.115:3000/bill/fuse-code into v1.2.0-ga

bill 1 月之前
父节点
当前提交
6ec9df244d
共有 1 个文件被更改,包括 5 次插入3 次删除
  1. 5 3
      src/sdk/cover/index.js

+ 5 - 3
src/sdk/cover/index.js

@@ -985,9 +985,11 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
             //if (props.type == 'obj') props.type = 'glb'
             props.scale && (props.scale /= 100)
             
-            /* if(props.title == 'caijain'){
-                props.url = [`${Potree.resourcePath}/models/tiles_2/tileset.json`  ]
-            }  */
+            
+            if(props.raw.type == 7){
+                props.fromType = (props.type == 'osgb' || props.type == 'b3dm') ? 4 : 0  
+            } 
+
             
             let getBaseRotation = () => {
                 if(ModelTypes[props.fromType]?.rot90 && props.type != 'obj'){