KhronosGroup / glTF-Blender-IO

Blender glTF 2.0 importer and exporter
https://docs.blender.org/manual/en/latest/addons/import_export/scene_gltf2.html
Apache License 2.0
1.45k stars 306 forks source link

Extensionsused - no longer populated with user extesions - help requested #2253

Closed ronh991 closed 1 month ago

ronh991 commented 1 month ago

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

    "extensionsUsed":[
        "ASOBO_normal_map_convention",
        "ASOBO_unique_id",
        "KHR_materials_specular",
        "KHR_materials_ior",
        "ASOBO_material_detail_map",
        "ASOBO_material_windshield",
        "ASOBO_material_shadow_options",
        "ASOBO_material_fresnel_fade",
        "ASOBO_material_glass",
        "ASOBO_material_blend_gbuffer"
    ],

latest export

    "extensionsUsed":[
        "KHR_materials_clearcoat",
        "KHR_materials_specular",
        "KHR_materials_ior"
    ],

.blend file/ .gltf (mandatory) not available as you do not have the code that adds the extensions - Help request only

Version

Additional context Add any other context about the problem here.

ronh991 commented 1 month ago

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

ronh991 commented 1 month ago

It seems there was a removal of the GLTF_PT_export_user_extensions panel class

julienduroure commented 1 month ago

Ah, yes, confirmed.

julienduroure commented 1 month ago

There is no more panel Classes for UI, Blender changed that, and it seems we forgot to update / find a solution for user extension. Investigation in progress

julienduroure commented 1 month ago

Hello, Blender changes will need you to update all your user extension addon UI. You can see example addon to know how to update:

Your addon will also need a manifest file to be able to be installed.

ronh991 commented 1 month ago

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.