Browse Source

Merge pull request #1769 from Temechon/master

Fixed bug on 'onPointerPick'
David Catuhe 8 years ago
parent
commit
0cd1efb5ae
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/babylon.scene.ts

+ 1 - 1
src/babylon.scene.ts

@@ -898,8 +898,8 @@
                 var pickResult = this.pick(this._unTranslatedPointerX, this._unTranslatedPointerY, this.pointerDownPredicate, false, this.cameraToUseForPointers);
 
                 if (pickResult.hit && pickResult.pickedMesh) {
+                    this._pickedDownMesh = pickResult.pickedMesh;
                     if (pickResult.pickedMesh.actionManager) {
-                        this._pickedDownMesh = pickResult.pickedMesh;
                         if (pickResult.pickedMesh.actionManager.hasPickTriggers) {
                             switch (evt.button) {
                                 case 0: