copyPath method

void copyPath(
  1. ActorPath node,
  2. ActorArtboard resetArtboard
)

Implementation

void copyPath(ActorPath node, ActorArtboard resetArtboard) {
  copyNode(node, resetArtboard);
  copySkinnable(node, resetArtboard);
  _isHidden = node._isHidden;
  _isClosed = node._isClosed;

  int pointCount = node._points.length;

  _points = <PathPoint>[];
  for (int i = 0; i < pointCount; i++) {
    _points.add(node._points[i].makeInstance());
  }

  if (node.vertexDeform != null) {
    vertexDeform = Float32List.fromList(node.vertexDeform!);
  }
}