blender-to-gmstudio / blender-to-smf

Import-Export of Blender model from/to SMF model format
MIT License
11 stars 2 forks source link

Prevent None values appearing in the list of animations to be exported #40

Closed bartteunis closed 2 years ago

bartteunis commented 2 years ago

This threw an error further down in the code:

Python: Traceback (most recent call last):
  File "C:\Users\SnidrHub\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\blender-to-smf-09\__init__.py", line 150, in execute
    return export_smf(self, context, **keywords)
  File "C:\Users\SnidrHub\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\blender-to-smf-09\export_smf.py", line 515, in export_smf
    kf_times = sorted({p.co[0] for fcurve in anim_data.action.fcurves for p in fcurve.keyframe_points})
AttributeError: 'NoneType' object has no attribute 'fcurves'

location: <unknown location>:-1