|
@@ -985,9 +985,11 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
|
|
//if (props.type == 'obj') props.type = 'glb'
|
|
//if (props.type == 'obj') props.type = 'glb'
|
|
props.scale && (props.scale /= 100)
|
|
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 = () => {
|
|
let getBaseRotation = () => {
|
|
if(ModelTypes[props.fromType]?.rot90 && props.type != 'obj'){
|
|
if(ModelTypes[props.fromType]?.rot90 && props.type != 'obj'){
|