parseAnimations method

dynamic parseAnimations(
  1. dynamic json
)

Implementation

parseAnimations(json) {
  var animations = {};

  if (json != null) {
    for (var i = 0; i < json.length; i++) {
      var data = json[i];

      var clip = AnimationClip.parse(data);

      animations[clip.uuid] = clip;
    }
  }

  return animations;
}