|
@@ -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(()=>{
|