renameBones static method

dynamic renameBones(
  1. dynamic skeleton,
  2. dynamic names
)

Implementation

static renameBones(skeleton, names) {
  var bones = getBones(skeleton);

  for (var i = 0; i < bones.length; ++i) {
    var bone = bones[i];

    if (names[bone.name]) {
      bone.name = names[bone.name];
    }
  }

  // TODO how return this;
  print("SkeletonUtils.renameBones need confirm how return this  ");

  // return this;
}