Pārlūkot izejas kodu

detatch controls to avoid preventing mouse events

Trevor Baron 7 gadi atpakaļ
vecāks
revīzija
23f324f7ab
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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();
             }