Only enabled objects in the view layer should be used, while temporarily hidden objects should still have an effect.