Skip to content
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

Update for changes in Blender 4.0 #648

Open
wants to merge 3 commits into
base: development
Choose a base branch
from

Conversation

Mysteryem
Copy link

@Mysteryem Mysteryem commented Nov 15, 2023

Blender 4.0 removed bone layers and bone groups, replacing them with Bone Collections.

This patch adds a "Blender 3.6 or older" check and uses new Bone Collection code when using Blender 4.0.

Bone collections are not removed like bone groups were because they are the direct replacement for armature/bone layers, which were not removed before. The bone color properties of bone groups were instead replaced in 4.0 by setting each bone's color individually. This patch does not modify bone colors like removing bone groups would have done in older versions.


Blender 4.0 replaced the ability to call operators with a context override argument with Context.temp_override.

A new version-independent function for calling operators with context overrides has been added to common.py and code has been updated to use this new function.


It should be noted that mmd tools is broken in many areas with the update to 4.0, but the upstream mmd tools repository is yet to update for 4.0: https://github.com/UuuNyaa/blender_mmd_uuunyaa_tools. Though note that mmd tools' priority is supporting the latest LTS release, which 4.0 is not, so mmd tools updating could take some time. https://mmd-blender.fandom.com/wiki/MMD_UuuNyaa_Tools#Requirements

Yusarina added a commit to teamneoneko/Cats-Blender-Plugin-Unofficial- that referenced this pull request Nov 20, 2023
Fix came from the Official Cats Pluign please see absolute-quantum/cats-blender-plugin#648
Yusarina added a commit to teamneoneko/Cats-Blender-Plugin-Unofficial- that referenced this pull request Nov 22, 2023
- Added Twist Bone Generation.
- Added Repair Shapekeys Generation.
- Added Optimised Shapekeys.
- CAT's is no longer supported on versions below 3.6.
- 4.0 Fixes by Mysteryem absolute-quantum/cats-blender-plugin#648
- Small bug fixes.
@Rawrgurl
Copy link

Rawrgurl commented Jan 2, 2024

it seems i'll have to wait a while then, because I just downloaded 4.0 because the previous downloads for 3.5 where broken. I'm glad I kept a version of blender that still works with mmd tools because right now its currently broken. I cannot even import a model anymore unless i save the project in an older version and open it in 4.0.

@AraHaan
Copy link

AraHaan commented Jan 9, 2024

I would suggest for now using steam to use Blender 3.6 stable until cats is updated to support Blender v4.0

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.

3 participants