-
Notifications
You must be signed in to change notification settings - Fork 317
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
Extensionsused - no longer populated with user extesions - help requested #2253
Comments
I have tracked this to the new extensions - rather than legacy add-ons. it is no longer registering my panel that triggers the user extensions to be added to the addon |
It seems there was a removal of the GLTF_PT_export_user_extensions panel class |
Ah, yes, confirmed. |
There is no more panel Classes for UI, Blender changed that, and it seems we forgot to update / find a solution for user extension. |
Fix #2253 - update user extension UI after changes in Blender
Hello,
Your addon will also need a manifest file to be able to be installed. |
thanks, appreciate the quick response to this issue. Will work on the fix. I have the addon working with the toml manifest file already, just needed your update. |
Have noticed a few problems with the draw() method in user extensions: The header.props(props, 'enabled') adds a bunch of whitespace which looks bad and makes the labels hard to read If the panel is collapsed, the line:
Will return body=None, which breaks the example plugins. The following is printed to the console:
Probably, the draw() needs to read:
Finally, the method for extracting the draw() method is not great; if an addon provides a gltf2ImportUserExtension, the modules' draw() is registered in importer_extension_layout_draw: glTF-Blender-IO/addons/io_scene_gltf2/__init__.py Line 1837 in 93db353
Similarly, if a module provides a gltf2ExportUserExtension, the same draw() function is registered in exporter_extension_layout_draw: glTF-Blender-IO/addons/io_scene_gltf2/__init__.py Line 1010 in 93db353
However, if an addon provides both an importer and an exporter, then there's no way to determine what you should be drawing, so both the import and export options will show up in both the import and export windows. |
We have the same issue regarding the UI showing up in import AND export. Having a way to determine which window is open would help a lot |
Hello, |
Hello, I propose to split the "draw" method into "draw_import" and "draw_export". |
Any feedback before I merge it? |
I was just thinking if the info should be inside a third parameter instead of extra functions (some context object) but I'm not sure if this would have any benefit. draw_import and export is very explicit which is good! |
Looks good to me, thanks! |
Fix #2253 - distinct import & export draw
Fix #2253 - distinct import & export draw
Describe the bug
The extensions used is no longer being populated with my user extensions. this was working as expected April 24. Is there a requirement for use extensions to be added to the extensionsused dsection. The extensions are part of all the other sections as needed. Just the extensions used is not
To Reproduce
Steps to reproduce the behavior:
Make and hook to add in a functionality for a user extension.
Expected behavior
userextension section is populated
Screenshots
pre April 24
latest export
.blend file/ .gltf (mandatory)
not available as you do not have the code that adds the extensions - Help request only
Version
OS: win10
Blender Version Blender 4.2 aebf
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: