			batchedMesh.deleteInstance(mesh.userData.batchId);

				if (mesh === targetMesh) {
					unselect();
				}
			}

			while (regularMeshes.children.length < count) {
				const mesh = createMesh();
		
				regularMeshes.add(mesh);

				const batchId = batchedMesh.addInstance(mesh.userData.geometryId);

				_tempColor4.copy(mesh.material.diffuse);
				_tempColor4.a = mesh.material.opacity;
				batchedMesh.setColorAt(batchId, _tempColor4);
				batchedMesh.setMatrixAt(batchId, mesh.matrix);

				mesh.userData.ba