Ignore invisible layers during collection of all layers.