Archived
1
0
Fork 0

Fix collision types not getting applied properly

This commit is contained in:
Yoshi2 2020-01-08 21:06:05 +01:00
parent 5b1add06e0
commit f7e03ce679

View file

@ -216,6 +216,7 @@ class ImportCOL(Operator, ExportHelper): #Operator that exports the collision mo
ColParameterAreEqual = (f.ColParameter == mat.ColEditor.ColParameterField)
ColParameterDontExist = f.ColParameter is None and mat.ColEditor.HasColParameterField is False #If the ColParameter doesn't exist we need to check for that case
if ColParameterAreEqual or ColParameterDontExist:
MyFace.material_index = i
break #We assigned our material
else: #We did not find a material that matched
MaterialName = str(f.ColType) + "," + str(f.TerrainType) + "," + str(f.unknown) + "," + str(f.ColParameter)