瀏覽代碼

fix: rotation初始化错误

xzw 2 年之前
父節點
當前提交
e7d64dc784
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/sdk/cover/index.js

+ 1 - 1
src/sdk/cover/index.js

@@ -411,7 +411,7 @@ export const enter = (dom, isLocal) => {
             if(props.type == 'obj') props.type = 'glb'
             props.scale /= 100 
             if(props.rotation){
-                if(props.rotation._x = void 0 && props.rotation.x != void 0){
+                if(props.rotation._x == void 0 && props.rotation.x != void 0){
                     props.rotation = new THREE.Euler().setFromVector3(props.rotation)
                 }
             }