Skip to content

Commit 03501ad

Browse files
committed
Fix bug where only lowercase model extensions were being detected
1 parent ec3c89f commit 03501ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

io_scene_a3d/BattleMapBlenderImporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ def __init__(self):
391391
self.mainObject = None
392392

393393
def loadModel(self, modelPath):
394-
fileExtension = modelPath.split(".")[-1]
394+
fileExtension = modelPath.split(".")[-1].lower()
395395
if fileExtension == "a3d":
396396
modelData = A3D()
397397
with open(modelPath, "rb") as file: modelData.read(file)

0 commit comments

Comments
 (0)