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

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

Closed chickenborn closed 4 days ago

chickenborn commented 1 month 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 1 month 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 days ago

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