Skip to content

Fix crash when importing FBX from Blender 4.1+#1344

Merged
LeoVgr merged 1 commit intoHeapsIO:masterfrom
fourst4r:patch-1
Mar 19, 2026
Merged

Fix crash when importing FBX from Blender 4.1+#1344
LeoVgr merged 1 commit intoHeapsIO:masterfrom
fourst4r:patch-1

Conversation

@fourst4r
Copy link
Contributor

Fixes a crash due to null normals on converting FBX model.

Refactors processVectors to read MappingInformationType and ReferenceInformationType into variables and handle IndexToDirect references generically using .Index.

This moves index-based remapping before vertex-based reindexing and replaces the hardcoded NormalsIndex key, fixing exports (e.g. Blender 4.1) that use IndexToDirect reference types.

Note: This was authored by Codex 5.4 and tested by me, allowing my FBX models exported from Blender 4.1 to load correctly without crashing.

Fixes a crash due to null normals on converting FBX model. 

Refactors processVectors to read MappingInformationType and ReferenceInformationType into variables and handle IndexToDirect references generically using <layer>.<name>Index. 

This moves index-based remapping before vertex-based reindexing and replaces the hardcoded NormalsIndex key, fixing exports (e.g. Blender 4.1) that use IndexToDirect reference types. 

Note: This was authored by Codex 5.4 and tested by me, allowing my FBX models exported from Blender 4.1 to load correctly without crashing.
@TothBenoit TothBenoit requested a review from LeoVgr March 19, 2026 07:13
@LeoVgr LeoVgr merged commit 72143b6 into HeapsIO:master Mar 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants