mirror of
https://github.com/MapMakersAndProgrammers/io_scene_a3d.git
synced 2025-10-25 17:39:10 -07:00
Fix bug where only lowercase model extensions were being detected
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user