|
@@ -93,6 +93,7 @@ var BABYLON;
|
|
for (var index = 0; index < this._events.length; index++) {
|
|
for (var index = 0; index < this._events.length; index++) {
|
|
if (this._events[index].frame === frame) {
|
|
if (this._events[index].frame === frame) {
|
|
this._events.splice(index, 1);
|
|
this._events.splice(index, 1);
|
|
|
|
+ index--;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
};
|
|
@@ -394,6 +395,7 @@ var BABYLON;
|
|
// If event should be done only once, remove it.
|
|
// If event should be done only once, remove it.
|
|
if (event.onlyOnce) {
|
|
if (event.onlyOnce) {
|
|
this._events.splice(index, 1);
|
|
this._events.splice(index, 1);
|
|
|
|
+ index--;
|
|
}
|
|
}
|
|
event.action();
|
|
event.action();
|
|
}
|
|
}
|