DFSMode needs to be passed to the recursive calls so the selected order is also applied further down the scenegraph.