Skip to content
Snippets Groups Projects
Commit 072073e4 authored by Mysteryem's avatar Mysteryem Committed by Bastien Montagne
Browse files

Fix T75982: FBX export with empty material swapps materials around

FBX exporter code was creating the list used for mapping material indices to FBX indices from only the materials being exported.

Since there is no material for empty material slots, the list used for mapping would be reduced in length by one for each empty material slot.

The mesh's material indices would remain unaffected by the reduction in length of the mapping list, causing any material indices after an empty material slot to be mapped to the wrong FBX index.

This patch changes the creation of the mapping list so that any material slots with a material that is not being exported are mapped to the default material instead of being excluded.

Reviewed By: mont29

Maniphest Tasks: T75982

Differential Revision: https://developer.blender.org/D17034
parent 5c9ecad1
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment