copy method

  1. @override
InstancedMesh copy(
  1. Object3D source, [
  2. bool? recursive
])
override

Implementation

@override
InstancedMesh copy(Object3D source, [bool? recursive]) {
  super.copy(source);
  if (source is InstancedMesh) {
    instanceMatrix!.copy(source.instanceMatrix!);
    if (source.instanceColor != null) {
      instanceColor = source.instanceColor!.clone();
    }
    count = source.count;
  }
  return this;
}