used to update materials lists when we remove a material.
Works by taking an array of materials and then mapping their indexes to the one identified in the map
If a mapping isn't found for a given number in the material list, it is replaced with the replacement value.
used to update materials lists when we remove a material. Works by taking an array of materials and then mapping their indexes to the one identified in the map If a mapping isn't found for a given number in the material list, it is replaced with the replacement value.