소스 검색

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();
             }