taniwha / io_object_mu

Python .mu reader/writer and blender import/export addon
GNU General Public License v2.0
120 stars 51 forks source link

Adding support to export Euler rotation #64

Closed kaanrkaraman closed 2 years ago

kaanrkaraman commented 2 years ago

Euler rotation was not supported by this addon and it was producing the following error just for future reference. The error should be removed via this pull request. Detailed info here.

Python: Traceback (most recent call last): File "C:\Users\ultro\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\io_object_mu-master\export_mu\operators.py", line 63, in execute return export_mu(self, context, **keywords) File "C:\Users\ultro\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\io_object_mu-master\export_mu\operators.py", line 34, in export_mu mu = export.export_object (context.active_object, filepath) File "C:\Users\ultro\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\io_object_mu-master\export_mu\export.py", line 181, in export_object anim_root_obj.animation = make_animations(mu, animations, anim_root) File "C:\Users\ultro\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\io_object_mu-master\export_mu\animation.py", line 296, in make_animations clip.curves.append(make_curve(mu, muobj, curve, path, typ)) File "C:\Users\ultro\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\io_object_mu-master\export_mu\animation.py", line 172, in make_curve property, mult, ctyp = property_map[curve.data_path][curve.array_index] KeyError: 'rotation_euler'

taniwha commented 2 years ago

Thanks