Explorar o código

Fixing a bug with GamepadCamera.dispose()

David Catuhe %!s(int64=11) %!d(string=hai) anos
pai
achega
2b8c0a1926

+ 2 - 1
Babylon/Cameras/babylon.gamepadCamera.js

@@ -1,4 +1,4 @@
-var __extends = this.__extends || function (d, b) {
+var __extends = this.__extends || function (d, b) {
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
@@ -51,6 +51,7 @@ var BABYLON;
 
         GamepadCamera.prototype.dispose = function () {
             this._gamepads.dispose();
+            _super.prototype.dispose.call(this);
         };
         return GamepadCamera;
     })(BABYLON.FreeCamera);

+ 1 - 0
Babylon/Cameras/babylon.gamepadCamera.ts

@@ -43,6 +43,7 @@ module BABYLON {
 
         public dispose(): void {
             this._gamepads.dispose();
+            super.dispose();
         }
     }
 }

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 1
babylon.1.14-beta-debug.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 1
babylon.1.14-beta.js