Make panel API calls work across Blender 4 and 5#23
Open
balrog-kun wants to merge 1 commit intotin2tin:mainfrom
Open
Make panel API calls work across Blender 4 and 5#23balrog-kun wants to merge 1 commit intotin2tin:mainfrom
balrog-kun wants to merge 1 commit intotin2tin:mainfrom
Conversation
Blender 5 has changes in the class names and class property names and also moved strip properties from the VSE to the properties panel, so update the code for all these things to check for either the old or new version and use whatever is available. This should make the addon work with both Blender 4 and 5. Only 5 tested here.
8a565c0 to
f82d68c
Compare
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.
Blender 5 has changes in the class names and class property names and also moved strip properties from the VSE to the properties panel, so update the code for all these things. Check for either the old or new version and use whatever is available.
This should make the addon work with both Blender 4 and 5. Only 5 tested here.
This is the blender 4 + 5 version of this commit. Initially I switched everything to use the blender 5 api only. I'll add a separate PR for that so you can accept one and reject the other one. Blender 4.4 is already newer than anything in ubuntu packages so if I'm going to be installing Blender manually I might as well use 5, so not sure how much value there is in the compatibility code long term.