mirror of
https://github.com/MapMakersAndProgrammers/io_scene_a3d.git
synced 2025-10-26 01:49:13 -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
|
self.mainObject = None
|
||||||
|
|
||||||
def loadModel(self, modelPath):
|
def loadModel(self, modelPath):
|
||||||
fileExtension = modelPath.split(".")[-1]
|
fileExtension = modelPath.split(".")[-1].lower()
|
||||||
if fileExtension == "a3d":
|
if fileExtension == "a3d":
|
||||||
modelData = A3D()
|
modelData = A3D()
|
||||||
with open(modelPath, "rb") as file: modelData.read(file)
|
with open(modelPath, "rb") as file: modelData.read(file)
|
||||||
|
|||||||
Reference in New Issue
Block a user