Combining identical materials generated by the Cubegrid

Hi! I’m making the interior of a house using Modeling Mode - Cube grid, but something strange is happening. Every time I edit the Cubegrid walls mesh, for example, it generates a new material element for that edited section. The wall has the same material, and I think it’s probably a performance issue to have multiple materials that are actually the same. Is there a way to leave only 1 material element?

Thank you very much!

In Modeling Mode, under the Attribs section, there’s an Edit Materials tool. You can use it to remove material slots you don’t want and assign a single material to the whole mesh or select parts of the mesh and assign different materials.

image