glTF-Blender-IO-materials-variants icon indicating copy to clipboard operation
glTF-Blender-IO-materials-variants copied to clipboard

not working in blender 3.2

Open LorenzWieseke opened this issue 2 years ago • 4 comments

I have tried 0.0.2 and 0.0.3. Both work fine in blender 3.1

image

In blender 3.2 they changed the gltf exporter again so the add-on doesn't add material variants anymore:

image Blender3.2.zip

LorenzWieseke avatar Jun 10 '22 07:06 LorenzWieseke

gather_node_hook fails on <glTF-Blender-IO-materials-variants.glTF2ExportUserExtension object at 0x00000209B8A8E7D0> get_material_cache_key() missing 1 required positional argument: 'export_settings'

LorenzWieseke avatar Jun 15 '22 08:06 LorenzWieseke

ok so it took me an hour but all I have to add was a 1 ;)

image

They changed their function calls again in the exporter ... (why not just leave it in as deprecated, so it won't crash ?)

The gltf2_blender_gather_materials.py / gather_material function now wants an active uv index that it passes to the get_material_cache_key function. That's the positional arg that's missing.

image

LorenzWieseke avatar Jun 15 '22 09:06 LorenzWieseke

Thanks for the information. I will update the add-on hopefully soon.

takahirox avatar Jun 23 '22 05:06 takahirox

Blender 3.3 already has this plugin built in image image

kongxiaojian123 avatar Sep 09 '22 08:09 kongxiaojian123