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

Fixed multiuser object data causing exception when its type is not mesh #35

Closed TRangeman closed 11 months ago

TRangeman commented 1 year ago

This fixes exceptions that are raised, when shared_data[] is applied back to the multiuser objects. The objects that were converted to meshes wont accept their previous data types. Tested it for texts and curves.

EdyJ commented 1 year ago

Thank you for the pull request! Could you include some example file where it could be tested? Please add it to the tests folder.

TRangeman commented 1 year ago

Added a new test file. Exporting this previously caused: bpy_struct: item.attr = val: Object.data expected a Mesh type, not Curve