|
@@ -892,7 +892,9 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
|
|
if (props.opacity == void 0) props.opacity = 1
|
|
if (props.opacity == void 0) props.opacity = 1
|
|
//if (props.type == 'obj') props.type = 'glb'
|
|
//if (props.type == 'obj') props.type = 'glb'
|
|
props.scale /= 100
|
|
props.scale /= 100
|
|
-
|
|
|
|
|
|
+ /* 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'){
|
|
return new THREE.Euler(Math.PI / 2, 0, 0)
|
|
return new THREE.Euler(Math.PI / 2, 0, 0)
|
|
@@ -957,10 +959,10 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
|
|
result.model = model
|
|
result.model = model
|
|
model.fromType = ModelTypes[props.raw.type].name
|
|
model.fromType = ModelTypes[props.raw.type].name
|
|
|
|
|
|
- if(model.fromType == '圆周率场景'){
|
|
|
|
|
|
+ /* if(model.fromType == '圆周率场景'){
|
|
props.fromType = (props.type == 'osgb' || props.type == 'b3dm') ? 4 : 0
|
|
props.fromType = (props.type == 'osgb' || props.type == 'b3dm') ? 4 : 0
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ */
|
|
|
|
|
|
if (!props.isFirstLoad) {
|
|
if (!props.isFirstLoad) {
|
|
model.visible = false//先不显示,防止卡顿
|
|
model.visible = false//先不显示,防止卡顿
|