|
@@ -76,8 +76,8 @@ export class GroupModelAnimation implements IModelAnimation {
|
|
|
|
|
|
public get currentFrame(): number {
|
|
public get currentFrame(): number {
|
|
// get the first currentFrame found
|
|
// get the first currentFrame found
|
|
- for (let i = 0; i < this._animationGroup['_animatables'].length; ++i) {
|
|
|
|
- let animatable: Animatable = this._animationGroup['_animatables'][i];
|
|
|
|
|
|
+ for (let i = 0; i < this._animationGroup.animatables.length; ++i) {
|
|
|
|
+ let animatable: Animatable = this._animationGroup.animatables[i];
|
|
let animations = animatable.getAnimations();
|
|
let animations = animatable.getAnimations();
|
|
if (!animations || !animations.length) {
|
|
if (!animations || !animations.length) {
|
|
continue;
|
|
continue;
|
|
@@ -93,8 +93,8 @@ export class GroupModelAnimation implements IModelAnimation {
|
|
|
|
|
|
public get fps(): number {
|
|
public get fps(): number {
|
|
// get the first currentFrame found
|
|
// get the first currentFrame found
|
|
- for (let i = 0; i < this._animationGroup['_animatables'].length; ++i) {
|
|
|
|
- let animatable: Animatable = this._animationGroup['_animatables'][i];
|
|
|
|
|
|
+ for (let i = 0; i < this._animationGroup.animatables.length; ++i) {
|
|
|
|
+ let animatable: Animatable = this._animationGroup.animatables[i];
|
|
let animations = animatable.getAnimations();
|
|
let animations = animatable.getAnimations();
|
|
if (!animations || !animations.length) {
|
|
if (!animations || !animations.length) {
|
|
continue;
|
|
continue;
|