Browse Source

detatch controls to avoid preventing mouse events

Trevor Baron 7 năm trước cách đây
mục cha
commit
23f324f7ab
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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();
             }