Repository navigation
Added support for Blender 5.2 - #279
Merged
Merged
Conversation
Verified against Blender 5.2.0 LTS (Python 3.13): the full test suite, an install as extension and as legacy add-on, and a W3D/W3X export and re-import roundtrip. Replace all deprecated API usage, so the add-on no longer emits a single deprecation warning on 5.2: * Material.blend_method -> Material.surface_render_method. The old property has no effect in EEVEE Next, so transparency of imported materials was silently lost since Blender 4.2. * Material.show_transparent_back -> Material.use_transparency_overlap * Material.use_nodes, which gets removed in Blender 6.0. The node tree is only requested when the material does not have one yet. * Mesh.vertex_colors -> Mesh.color_attributes * MeshUVLoopLayer.data -> MeshUVLoopLayer.uv All of them go through version guarded helpers, the add-on keeps working on the older Blender versions the CI covers. Make the add-on installable as an extension: * add blender_manifest.toml, the released archive now works both as an extension (Blender 4.2+) and as a legacy add-on archive. * use relative imports inside the package. As an extension the package is named bl_ext.<repo>.io_mesh_w3d, so the absolute io_mesh_w3d.* imports failed to resolve and enabling the add-on errored out. * skip the bundled updater when running as an extension, extensions are updated through their repository instead. Bugfixes found along the way: * import crashed on Blender 4.1: Mesh.use_auto_smooth was removed in 4.1, not in 4.2 as the version guard assumed. * w3x writing relied on the truth value of an xml element, which is deprecated in Python and will always be True in a future version. Reading it as a child count keeps the intended meaning.
Tarcontar
approved these changes
Aug 8, 2026
Collaborator
|
Looks good to me, great job, thanks! :) |
Collaborator
|
@LutBox please rebase on current master branch so the CI can run |
Collaborator
|
@LutBox sorry i made a mistake with the URL, now it is fixed on master branch and CI finally works again, could you please rebase once more? |
LutBox
added a commit
to LutBox/OpenSAGE.BlenderPlugin
that referenced
this pull request
Sep 16, 2026
Resolves the conflicts the maintainer asked about after OpenSAGE#279 was merged. Both sides had independently added Blender 5.2 support and their own blender_manifest.toml, so every conflict was the same work appearing twice; the merged tree is identical to this branch's content. Resolutions: - version stays 0.9.0 (this branch), not master's 0.7.4 - TOOLS_PANEL_PT_w3d is not reinstated: this branch replaced it with W3D_TOOLS_PT_panel, which offers the same two operators, and the class no longer exists here, so keeping master's CLASSES entry would raise NameError on register - CHANGELOG keeps the v0.9.0 section above master's v0.7.4 section - README keeps the BfMe Tools section Full test suite passes headless (529 tests). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Verified against Blender 5.2.0 LTS (Python 3.13): the full test suite, an install as extension and as legacy add-on, and a W3D/W3X export and re-import roundtrip.
Replace all deprecated API usage, so the add-on no longer emits a single deprecation warning on 5.2:
All of them go through version guarded helpers, the add-on keeps working on the older Blender versions the CI covers.
Make the add-on installable as an extension:
Bugfixes found along the way: