Skip to content

Conversation

tankshield
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant