update method

void update()

Implementation

void update() {
  var bones = this.bones;
  var boneInverses = this.boneInverses;
  var boneMatrices = this.boneMatrices;
  var boneTexture = this.boneTexture;

  // flatten bone matrices to array
  int il = bones.length;
  for (var i = 0; i < il; i++) {
    // compute the offset between the current and the original transform

    var matrix = bones[i].matrixWorld;

    _offsetMatrix.multiplyMatrices(matrix, boneInverses[i]);
    _offsetMatrix.toArray(boneMatrices, i * 16);
  }

  if (boneTexture != null) {
    boneTexture.needsUpdate = true;
  }
}