Browse Source

Don't crash if there are unknown modifiers...

... This can happen if you save a blend file with a downstream codebase
with some newfangled modifier, then try to export with an upstream plugin
that does not have said modifier.
pull/6/head
Adam Johnson 11 years ago
parent
commit
acf5db5887
  1. 2
      korman/properties/modifiers/__init__.py

2
korman/properties/modifiers/__init__.py

@ -36,7 +36,7 @@ class PlasmaModifiers(bpy.types.PropertyGroup):
NOTE: We do not promise to return modifiers in their display_order!
"""
for i in dir(self):
attr = getattr(self, i)
attr = getattr(self, i, None)
# Assumes each modifier is a single pointer to PlasmaModifierProperties
if isinstance(attr, PlasmaModifierProperties):
if attr.enabled:

Loading…
Cancel
Save