-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Blender 4.0 #104
base: master
Are you sure you want to change the base?
Conversation
4.0 removed both armature/bone layers and bone groups. The bone colors that were set on bone groups are now set on bones individually. The new method of hiding and unhiding bones doesn't work very well because it relies on all bone collections being hidden aside from the "Visible Bones" collection and requires that all bones are added to at least one collection because bones not in any collections are always visible (unless they have been individually hidden).
may you share the one? |
If you mean the updated addon files, the link is at the top of the pull request to https://github.com/Mysteryem/XNALaraMesh/tree/master where the code (green button) can be downloaded as a .zip and installed as an addon. |
Works perfectly in 4.0.2.0. Thank you! I never had any luck with this plugin before and had wasted several days rigging characters manually. |
@Mysteryem hi just came to confirm that in blender 4.1 your fork stopped working, any help? https://developer.blender.org/docs/release_notes/4.1/python_api/#mesh |
Sorry, this PR was a one-off contribution that I decided to share after fixing it for Blender 4.0 for a friend of mine. I don't use the add-on, so I don't have any interest in maintaining it. |
I find this fix for 4.1 https://github.com/Mysteryem/XNALaraMesh/blob/fad067463cf301af974a1182898f1388ed0bc34b/import_xnalara_model.py |
thanks a lot for finding it, I confirm it works in blender 4.1 |
Thank you! Now I can use Blender 4.1 finally 🙂
|
Getting the same thing :| UPDATE: I am not sure how to use GitHub honestly, all new to this, but I made a fix for it and will post it once I am off work tomorrow night. |
Here is a fix for the 'calc_normals_split' issue some people are having. |
Updated the addon to handle changes in 4.0 affecting this addon:
"Emission"
to"Emission Color"
.NodeTree socket creation and clearing has been moved to new functions that are defined differently depending on the Blender version, so that 4.0 and newer use the new
NodeTree.interface
API.Getting PrincipledBSDF's emission input now uses the new name on Blender 4.0 and newer.
Showing/Hiding Bones in 4.0 and newer is now done by assigning to/unassigning from the "Visible Bones" Bone Collection. This isn't a great solution because all Bones must now belong to at least one other Bone Collection and all other Bone Collections each Bone is in must be hidden, but this results in behaviour closer to the original use of Armature/Bone Layers than only hiding the bones in Pose mode and not Edit mode.
Bone Groups have been replaced with extra Bone Collections in 4.0 and newer. The colors that were being set on Bone Groups are now set on each bone individually.
https://wiki.blender.org/wiki/Reference/Release_Notes/4.0/Python_API#Breaking_changes
This seems to be the changes required to get the addon to support the recently released Blender 4.0.
I don't personally use this addon, but fixed it for a friend who does, so this patch was quickly put together and has not been well tested.