For what I read somewhere else on the Internet, the main cause was the show changed filming locations, the new one being in a much colder weather. Melissa Benoist complained about her freezing her legs using panties, and this gave birth to the idea of updating her costume once again.