copyImage method

void copyImage(
  1. ActorImage node,
  2. ActorArtboard resetArtboard
)

Implementation

void copyImage(ActorImage node, ActorArtboard resetArtboard) {
  copyDrawable(node, resetArtboard);
  copySkinnable(node, resetArtboard);

  _textureIndex = node._textureIndex;
  _vertexCount = node._vertexCount;
  _triangleCount = node._triangleCount;
  _vertices = node._vertices;
  _triangles = node._triangles;
  _dynamicUV = node._dynamicUV;
  if (node._animationDeformedVertices != null) {
    _animationDeformedVertices =
        Float32List.fromList(node._animationDeformedVertices!);
  }
}