Browse Source

Merge pull request #51 from dpogue/light-anim-fix

Fix exporting lamp animations
pull/52/head
Adam Johnson 8 years ago committed by GitHub
parent
commit
da53a81d9e
  1. 6
      korman/exporter/animation.py

6
korman/exporter/animation.py

@ -148,6 +148,9 @@ class AnimationConverter:
yield applicator
def _convert_omni_lamp_animation(self, name, fcurves, lamp):
if not fcurves:
return None
energy_fcurve = next((i for i in fcurves if i.data_path == "energy"), None)
distance_fcurve = next((i for i in fcurves if i.data_path == "distance"), None)
if energy_fcurve is None and distance_fcurve is None:
@ -231,6 +234,9 @@ class AnimationConverter:
yield applicator
def _convert_spot_lamp_animation(self, name, fcurves, lamp):
if not fcurves:
return None
blend_fcurve = next((i for i in fcurves if i.data_path == "spot_blend"), None)
size_fcurve = next((i for i in fcurves if i.data_path == "spot_size"), None)
if blend_fcurve is None and size_fcurve is None:

Loading…
Cancel
Save