Fix bug where only lowercase model extensions were being detected

This commit is contained in:
Pyogenics
2025-05-31 12:22:16 +01:00
parent ec3c89f8b0
commit 03501ad56f

View File

@@ -391,7 +391,7 @@ class Prop:
self.mainObject = None
def loadModel(self, modelPath):
fileExtension = modelPath.split(".")[-1]
fileExtension = modelPath.split(".")[-1].lower()
if fileExtension == "a3d":
modelData = A3D()
with open(modelPath, "rb") as file: modelData.read(file)