فهرست منبع

fix: 圆周率场景分为0和4两种场景

xzw 1 ماه پیش
والد
کامیت
a476f4b4e1
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'){