Don't modify list you're iterating over
Don't modify list you're iterating over

It doesn't give a problem right now since we're only iterating over lists of length 1 here, but in the future this could cause weird bugs.

Contributes to issue CURA-2822.

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