I am attempting to switch materials for a .obj loaded model when a key is pressed, but I am running into an issue where only the first element in the material array is being used. I have double-checked that my loop is functioning correctly.
Check out the DEMO here. If you have any suggestions on how to fix this issue, please let me know!
Here is the CODE