mirror of
https://github.com/MapMakersAndProgrammers/io_scene_a3d.git
synced 2025-10-26 01:49:13 -07:00
Avoid key error when loading prop data
This commit is contained in:
@@ -367,8 +367,8 @@ class PropLibrary:
|
|||||||
|
|
||||||
# Create the prop
|
# Create the prop
|
||||||
prop = Prop()
|
prop = Prop()
|
||||||
meshInfo = propInfo["mesh"]
|
meshInfo = propInfo.get("mesh")
|
||||||
spriteInfo = propInfo["sprite"]
|
spriteInfo = propInfo.get("sprite")
|
||||||
if meshInfo != None:
|
if meshInfo != None:
|
||||||
modelPath = f"{self.directory}/" + meshInfo["file"]
|
modelPath = f"{self.directory}/" + meshInfo["file"]
|
||||||
prop.loadModel(modelPath)
|
prop.loadModel(modelPath)
|
||||||
|
|||||||
Reference in New Issue
Block a user