浏览代码

detatch controls to avoid preventing mouse events

Trevor Baron 7 年之前
父节点
当前提交
23f324f7ab
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/Behaviors/Mesh/babylon.sixDofDragBehavior.ts

+ 1 - 0
src/Behaviors/Mesh/babylon.sixDofDragBehavior.ts

@@ -69,6 +69,7 @@ module BABYLON {
             this._scene = this._ownerNode.getScene();
             if (!SixDofDragBehavior._virtualScene) {
                 SixDofDragBehavior._virtualScene = new BABYLON.Scene(this._scene.getEngine());
+                SixDofDragBehavior._virtualScene.detachControl();
                 this._scene.getEngine().scenes.pop();
             }