瀏覽代碼

Fixing a bug with GamepadCamera.dispose()

David Catuhe 11 年之前
父節點
當前提交
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];
     for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
     function __() { this.constructor = d; }
     function __() { this.constructor = d; }
     __.prototype = b.prototype;
     __.prototype = b.prototype;
@@ -51,6 +51,7 @@ var BABYLON;
 
 
         GamepadCamera.prototype.dispose = function () {
         GamepadCamera.prototype.dispose = function () {
             this._gamepads.dispose();
             this._gamepads.dispose();
+            _super.prototype.dispose.call(this);
         };
         };
         return GamepadCamera;
         return GamepadCamera;
     })(BABYLON.FreeCamera);
     })(BABYLON.FreeCamera);

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

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

文件差異過大導致無法顯示
+ 1 - 1
babylon.1.14-beta-debug.js


文件差異過大導致無法顯示
+ 1 - 1
babylon.1.14-beta.js