EdyJ / blender-to-unity-fbx-exporter

FBX exporter addon for Blender compatible with Unity's coordinate and scaling system.
MIT License
947 stars 98 forks source link

Exporting collection with Empties gives Runtime error #11

Closed TedSwanseaUni closed 3 years ago

TedSwanseaUni commented 3 years ago

I'm not familiar with Blender but when testing this addon I noticed exporting collection that contains Empty objects results in a error:

Traceback (most recent call last): File "C:\Program Files\Blender Foundation\Blender 2.90\2.90\scripts\modules\bpy\ops.py", line 201, in call ret = op_call(self.idname_py(), None, kw) RuntimeError: Operator bpy.ops.object.convert.poll() failed, context is incorrect

location: :-1

Just selecting the mesh objects and using Selected Objects Only works but the rotations are not correct. Is there a way around this or is the solution just not to use empty objects? Thanks.

EdyJ commented 3 years ago

It should be fixed in this version, please try it and let me know if it works: https://github.com/EdyJ/blender-to-unity-fbx-exporter/blob/dev/fix-armature/blender-to-unity-fbx-exporter.py

TedSwanseaUni commented 3 years ago

Yes that works, thanks Edy :)