Replace material without needing to find its index
Replace material without needing to find its index

We have an easy setter for this.

Contributes to issue CURA-3497.

fieldOfView/Cura,hmflash/Cura,ynotstartups/Wanhao,fieldOfView/Cura,Curahelper/Cura,hmflash/Cura,Curahelper/Cura,ynotstartups/Wanhao