blender-datasmith-export icon indicating copy to clipboard operation
blender-datasmith-export copied to clipboard

Blender 4.5 & Unreal Engine 5.6 Compatibility Update

Open tankshield opened this issue 4 months ago • 0 comments

This pull request introduces significant updates to the Blender Datasmith Export plugin, ensuring full compatibility with Blender 4.5 and Unreal Engine 5.6.

Key changes and fixes include:

  • Resolved AttributeError: 'Mesh' object has no attribute 'calc_normals': Updated the mesh normal calculation to align with Blender 4.5 API changes, fixing a critical export error.
  • Fixed SyntaxError: unterminated triple-quoted string literal: Addressed multiple instances of this syntax error in export_datasmith.py, specifically in the animation JSON construction and metadata handling, ensuring proper string formatting.
  • Modernized Blender API Calls: Replaced deprecated API calls with their current equivalents for:
    • Object linking (bpy.context.scene.collection.objects.link)
    • Setting active objects (bpy.context.view_layer.objects.active)
    • Mesh evaluation (bl_obj.evaluated_get(depsgraph).to_mesh())
    • Accessing collection names (bl_obj.users_collection[0].name)
  • Improved Stability and Compatibility: These updates enhance the plugin's overall stability, efficiency, and ensure seamless integration with the latest versions of Blender and Unreal Engine.

This update is crucial for users working with modern Blender and Unreal Engine versions, providing a reliable and error-free export workflow.

tankshield avatar Aug 15 '25 19:08 tankshield