-
Notifications
You must be signed in to change notification settings - Fork 6
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
Support Blender 2.7 #5
Comments
The bigger issue is the Blender Python API differences between 2.79 and 2.80. A number of features were added, removed, and renamed. The glTF-Blender-IO project is written to support both versions directly (via So, the raw code in the GitHub repo works in both 2.79 and 2.80, but produces a number of warnings in 2.80. The converted code has the 2.79 stuff stripped out, and ships as a 2.80-only addon with no warnings. |
2.80 stable is due in July, so this may all be a moot point pretty soon. Having the repo's raw code work directly in 2.80 is a great help for interactive debugging too. |
@emackey My biggest concern is people will want to stick with 2.79 since the UI has been largely changed. Yeah worse case scenario I will try and make a python addon that converts 2.8 code to 2.79 on top of the python 3 to 2.7 converter. |
What I'm suggesting is, rather than invent a new conversion script from scratch, you should take the time to understand what glTF-Blender-IO is doing, and consider doing exactly the same thing, with the same conversion script that already exists. Especially since glTF-Blender-IO is your primary dependency, it makes sense for the structure and conversions to be the same. You could probably also borrow much of the test framework as well, but that's another topic. |
Yeah I haven't put too much thought into the approach I want to take. My first thought is just to do a find and replace for the renamed components but now I am remembering I am using some 2.8 only features ie timers. |
I agree that we will most likely never support 2.79, but we can leave this open for the time being so people can +1 it if they would like to see it happen. We definitely shouldn't spend any time on it otherwise. |
Hello,
|
The Problem
Currently the project is built for blender 2.8 which uses python 3 instead of version 2. It also means the glTF exporter is not bundled by default. If the demand is high enough or if there is enough residual users of blender 2.79 that could warrant making a 2.79 version.
Execution
To do this we would have to backport python 3 code to version 2 using a library like 3to2. Additionally, the gltf exporter would have to be bundled with our project so the user has the library by default. As long as the library for converting from python 3 to python 2 works the bundling would not be too hard.
Final Thoughts
I think version 2.8 will suffice for but it could be something we decide to approach if the demand is there.
The text was updated successfully, but these errors were encountered: