|
@@ -472,11 +472,10 @@ export const enter = (dom, isLocal) => {
|
|
|
|
|
|
let bus = mitt()
|
|
|
//console.log('addModel',props)
|
|
|
- props.isFirstLoad = props.bottom == void 0 //在编辑时用户添加的
|
|
|
- if(props.opacity == void 0) props.opacity = 1
|
|
|
- props.scale /= 100
|
|
|
+ props.isFirstLoad = isLocal && props.bottom == void 0 //离地高度去掉了这怎么办 // //在编辑时用户添加的
|
|
|
+ if(props.opacity == void 0) props.opacity = 1
|
|
|
if(props.type == 'obj') props.type = 'glb'
|
|
|
-
|
|
|
+ props.scale /= 100
|
|
|
|
|
|
if(!props.isFirstLoad){
|
|
|
if(autoLoads.length == 0){ //首次加载
|
|
@@ -553,7 +552,7 @@ export const enter = (dom, isLocal) => {
|
|
|
position : model.position.clone(),
|
|
|
scale: model.scale.x * 100,
|
|
|
rotation: model.rotation.clone(),
|
|
|
- bottom: model.btmHeight
|
|
|
+ //bottom: model.btmHeight
|
|
|
})
|
|
|
})
|
|
|
spliceFromArr(model,true)
|