Closed pjoe closed 1 year ago
@pjoe Hello, Thanks for the reporting and the diff. Yes, I need it again main. Can you open a PR on your own?
Will, do ... just having some issue getting gltF-Blender-IO working against the 4.0 alpha I downloaded, is there any specific blender 4.0 I need or just latest ... should main also work against 3.6? Was having issues until I switched to the 3.6 branch :S
glTF I/O (this repo) will not work on Blender 3.6, as there are some API change between 3.6 and 4.0 Last changes was yesterday, so you need a real fresh 4.0 alpha version of Blender
Yeah looks like latest daily windows build available from builder.blender.org is from sep-11, probably the cause of my issues
No change on this file since 3.6 => I am able to apply your patch. Don't worry, I will create the PR
Can this be backported to 3.6 too since it's LTS?
Requested to be backported here: https://projects.blender.org/blender/blender/issues/109399#issuecomment-1029998 (not done yet)
Describe the bug Trying to import .gltf exported from Source 2 Viewer, this contains primitives with custom attributes, e.g.
_TEXCOORD_4
. The file passes gltf validation, but causes crash in the blender importer.To Reproduce Steps to reproduce the behavior:
Expected behavior The file is imported without crashes
Screenshots See https://github.com/ValveResourceFormat/ValveResourceFormat/issues/624
.blend file/ .gltf For IP reasons I cannot share here
Version
Additional context I have a fix for this against the 3.6 branch, but guessing you need PRs against main?
It seems pretty obvious that e.g. here accessing
prim
doesn't make sense: https://github.com/KhronosGroup/glTF-Blender-IO/blob/main/addons/io_scene_gltf2/blender/imp/gltf2_blender_mesh.py#L149FWIW: here is my diff: