Explorar o código

Merge branch 'master' of https://github.com/BabylonJS/Babylon.js

QuentinRillet %!s(int64=7) %!d(string=hai) anos
pai
achega
41e62a843b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Physics/babylon.physicsImpostor.ts

+ 1 - 1
src/Physics/babylon.physicsImpostor.ts

@@ -157,7 +157,7 @@ module BABYLON {
             this._physicsEngine.removeImpostor(this);
             this.physicsBody = null;
             this._parent = this._parent || this._getPhysicsParent();
-            if (!this.parent || this._options.ignoreParent) {
+            if (!this._isDisposed && (!this.parent || this._options.ignoreParent)) {
                 this._physicsEngine.addImpostor(this);
             }
         }