completeResolve method

  1. @override
void completeResolve()
override

Implementation

@override
void completeResolve() {
  ActorSkinnable? skinnable = parent as ActorSkinnable?;
  if (skinnable == null) {
    return;
  }
  skinnable.skin = this;
  artboard.addDependency(this, skinnable as ActorComponent);
  if (skinnable.isConnectedToBones) {
    List<SkinnedBone> connectedBones = skinnable.connectedBones!;
    for (final SkinnedBone skinnedBone in connectedBones) {
      artboard.addDependency(this, skinnedBone.node);
      List<ActorConstraint> constraints = skinnedBone.node.allConstraints;

      for (final ActorConstraint constraint in constraints) {
        artboard.addDependency(this, constraint);
      }
    }
  }
}