(materials)
return mtl
Generate dummy materials.
Generate dummy materials.
Generate dummy materials .
def generate_mtl(materials):
    """Generate dummy materials.
    """

    mtl = {}
    for m in materials:
        index = materials[m]
        mtl[m] = {
            "DbgName": m,
            "DbgIndex": index,
            "DbgColor": generate_color(index),
            "vertexColors" : False
        }
    return mtl
def generate_mtl ( materials ) : mtl = { } for m in materials : index = materials [ m ] mtl [ m ] = { "DbgName" : m , "DbgIndex" : index , "DbgColor" : generate_color ( index ) , "vertexColors" : False } return mtl