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