xzw 2 anni fa
parent
commit
7b7470c64a
3 ha cambiato i file con 155046 aggiunte e 4 eliminazioni
  1. 155036 1
      public/lib/potree/potree.js
  2. 1 1
      public/lib/potree/potree.js.map
  3. 9 2
      src/sdk/cover/index.js

File diff suppressed because it is too large
+ 155036 - 1
public/lib/potree/potree.js


File diff suppressed because it is too large
+ 1 - 1
public/lib/potree/potree.js.map


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

@@ -384,8 +384,15 @@ export const enter = (dom, isLocal) => {
             props.isFirstLoad = isLocal ? props.bottom == void 0 : (props.isDynamicAdded || props.mode == 'single')  // 在编辑时用户添加的 或 展示单个模型 (props.mode='single'模型展示页, props.mode='many'融合页)
             if(props.opacity == void 0)  props.opacity = 1 
             if(props.type == 'obj') props.type = 'glb'
-            props.scale /= 100
-            
+            props.scale /= 100 
+            if(props.rotation){
+                if(props.rotation._x = void 0 && props.rotation.x != void 0){
+                    props.rotation = new THREE.Euler().setFromVector3(props.rotation)
+                }
+            }
+
+
+
             if(!props.isFirstLoad){ 
                 if(autoLoads.length == 0){ //首次加载
                     setTimeout(()=>{