AnimationObjectGroup constructor

AnimationObjectGroup(
  1. List<Mesh>? items
)

Implementation

AnimationObjectGroup(List<Mesh>? items) {
  // cached objects followed by the active ones
  _objects = items != null ? items.sublist(0) : [];

  var indices = {};
  _indicesByUUID = indices; // for bookkeeping

  if (items != null && items.isNotEmpty) {
    for (var i = 0, n = items.length; i != n; ++i) {
      indices[items[i].uuid] = i;
    }
  }

  _paths = []; // inside: string
  _parsedPaths = []; // inside: { we don't care, here }
  _bindings = []; // inside: Array< PropertyBinding >
  _bindingsIndicesByPath = {}; // inside: indices in these arrays

  var scope = this;

  // this.stats = {

  //   objects: {
  //     get total() {

  //       return scope._objects.length;

  //     },
  //     get inUse() {

  //       return this.total - scope.nCachedObjects_;

  //     }
  //   },
  //   get bindingsPerObject() {

  //     return scope._bindings.length;

  //   }

  // };
}