Auto-select the first material available.