blender/tests/files/io_tests/gltf/export/inline_material.blend
Julien Duroure 49bff0770c glTF: use inline material when possible
Use inline node tree material when possible, instead of original node_tree

The purpose of this change is to get rid of node group entering/exiting logic.

Unfortunately, there is a few cases where this is currently not possible to manage only the inline version:
- When user want to use KHR_animation_pointer
- When user need some glTF specific output (using the glTF Node)
- When user want to export additional textures samplers

I listed all these cases and some context/explanation here:
https://projects.blender.org/JulienDuroure/.profile/src/branch/main/doc/inline_nodetree/index.md

Performance tests:

| File | Main | PR | comment |
| -- | -- | -- | -- |
| https://github.com/user-attachments/files/15958048/example.blend.zip | 426s | 0.009s  | |
| https://github.com/user-attachments/files/16605220/mrp.zip | 53s | 0.004s | |
| https://github.com/KhronosGroup/glTF-Blender-IO/files/11376083/vrm1_0.zip | 35.44s | 0.66s | |
| tests/files/io_tests/gltf/roundtrip/material_full | 0.045s | 0.045s | not using inline material because of volume + glTF Output node |
| tests/files/io_tests/gltf/export/inline_material |0.06s | 0.06s | Used for non regression |

Pull Request: https://projects.blender.org/blender/blender/pulls/154741
2026-03-19 13:46:31 +01:00

3 lines
131 B
Text

version https://git-lfs.github.com/spec/v1
oid sha256:c8bbe64bd64f5d0a418abbbe94c760db60a34a31f881496d988ff3c2c9e536d3
size 373102