copyIKConstraint method

void copyIKConstraint(
  1. ActorIKConstraint node,
  2. ActorArtboard artboard
)

Implementation

void copyIKConstraint(ActorIKConstraint node, ActorArtboard artboard) {
  copyTargetedConstraint(node, artboard);

  _invertDirection = node._invertDirection;
  if (node._influencedBones != null) {
    _influencedBones = <InfluencedBone>[];
    for (int i = 0; i < _influencedBones!.length; i++) {
      _influencedBones!
          .add(InfluencedBone(node._influencedBones![i].boneIdx));
    }
  }
}