(&self, id: MeshID)
| 709 | if self.reject_oversized_explicit_id(id.index()) |
| 710 | || !self.materials.occupy_parts(id.index(), id.generation()) |
| 711 | { |
| 712 | return self.create_material(material, source, reserved); |
| 713 | } |
| 714 | self.material_by.insert(id, material); |
| 715 | self.material_revision = self.material_revision.wrapping_add(1); |
| 716 | if let Some(source) = source { |
| 717 | self.material_by_source.insert(source_key(source), id); |
| 718 | self.material_source_by.insert(id, source.to_string()); |
| 719 | } |
no test coverage detected