mirror of
https://github.com/Tribes2-SCP/AssetCompat.git
synced 2026-01-19 20:24:53 +00:00
Updated genmatlist.py
This commit is contained in:
parent
0f0ed48772
commit
aaaa1e45b8
|
|
@ -6,7 +6,7 @@ tf = open('materials.cs','w')
|
|||
for name in f:
|
||||
tf.write('singleton Material( "'+name.split('compat\\base\\textures\\')[-1].upper().replace('.png','').replace('.PNG','').rstrip("\n\r").split('\\')[-1]+'" )\n')
|
||||
tf.write('{\n')
|
||||
tf.write('diffuseMap[0] = "'+name.split('compat\\base\\textures\\')[-1].replace("\\","/").replace('.png','').replace('.PNG','').rstrip("\n\r")+'";\n')
|
||||
tf.write('diffuseMap[0] = "'+name.split('compat\\base\\textures\\')[-1].replace("\\","/").rstrip("\n\r")+'";\n')
|
||||
tf.write('mapTo = "'+name.split('compat\\base\\textures\\')[-1].upper().replace('.png','').replace('.PNG','').rstrip("\n\r").split('\\')[-1]+'";\n')
|
||||
tf.write('\n')
|
||||
tf.write('};\n')
|
||||
|
|
|
|||
Loading…
Reference in a new issue