09th / YABEE

Export models from the Blender to Panda3D game engine
MIT License
107 stars 39 forks source link

Fixed errors when an element in the object's data's materials array was ... #10

Closed tzaeru closed 9 years ago

tzaeru commented 9 years ago

Heyas,

Converting model 75519 from blendswap ( http://www.blendswap.com/blends/view/75519 ), I was faced with a bunch of errors relating to accessing properties of materials that did not, in-fact, exist; The materials-array of the object would have elements of the type None.

I added simple "if material is None:"-like fixes to all the sources of the aforementioned error.

Thanks, tz

09th commented 9 years ago

Thanks! Merged.