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.49k stars 317 forks source link

Assigning a material on an object instead on the data results in wrong materials at export. #2254

Closed chickenborn closed 4 months ago

chickenborn commented 5 months ago

To Reproduce Create an object In the objects material tab, switch from the "Data" option to the "Object" option and create a new material with a different color Now export and check the exported model somewhere. You will see that the export still has the old, default material instead of the new one.

Expected behavior The material that is assigned via the "Object" option should be applied when exporting

Version

julienduroure commented 5 months ago

Hello, I can not reproduce with current main, with this setup:

data image

object image

Export with default settings => Display on https://gltf-viewer.donmccurdy.com/

image

Please provide a test case .blend file, as requested in issue template that you deleted

julienduroure commented 4 months ago

A month without any answer, closing this ticket. Feel free to comment and re-open if you have some answer.