xzw 2 年之前
父节点
当前提交
8657f8c2d5
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8 1
      src/sdk/cover/index.js

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

@@ -534,7 +534,14 @@ export const enter = (dom, isLocal) => {
                     model && model.position.copy(pos)
                     model.dispatchEvent({type:'position_changed'}) 
                 }, 
-                
+                changeRotation(rot){//校准取消时执行 
+                    //if(MergeEditor.selected == model){
+                        //console.log('rot', rot.x, rot.y, rot.z)
+                    //}
+                 
+                    model && model.rotation.setFromVector3(rot) 
+                    model.dispatchEvent({type:'rotation_changed'})  
+                },
                 
                 
                 enterRotateMode(){