|
@@ -129,7 +129,7 @@ module BABYLON {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
- this._behaviors[index].detach(this);
|
|
|
|
|
|
+ this._behaviors[index].detach();
|
|
this._behaviors.splice(index, 1);
|
|
this._behaviors.splice(index, 1);
|
|
|
|
|
|
return this;
|
|
return this;
|
|
@@ -411,8 +411,10 @@ module BABYLON {
|
|
|
|
|
|
// Behaviors
|
|
// Behaviors
|
|
for (var behavior of this._behaviors) {
|
|
for (var behavior of this._behaviors) {
|
|
- behavior.detach(this);
|
|
|
|
|
|
+ behavior.detach();
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ this._behaviors = [];
|
|
}
|
|
}
|
|
|
|
|
|
public static ParseAnimationRanges(node: Node, parsedNode: any, scene: Scene): void {
|
|
public static ParseAnimationRanges(node: Node, parsedNode: any, scene: Scene): void {
|