FBX exporter mixes up the material IDs when there are empty material slots #101724

Closed
opened 2022-10-10 14:02:19 +02:00 by Soeren Schmidt-Clausen · 4 comments

System Information
Operating system: Windows 10
Graphics card: i3-8100 3.60Ghz

Blender Version
Broken: (3.3.1, 3.4.0 Alpha, ..., I dont think this is version specific)

Addon Information
Name: FBX format (4, 36, 3)
Author: Campbell Barton, Bastien Montagne, Jens Restemeier

Short description of error

When exporting a mesh as FBX and it has an empty material slot is between two Materials, which are assigned to the mesh, blender mixes up the assignment. Probably because it removes the empty material slot. This also occurs when a mesh is assigned to the empty material slot.

The Obj Exporter on the other hand handles this case correctly. When there is no mesh assigned to the Material the exporter deletes the slots but conserves the IDs. And then there is a mesh assigned to the empty slot it create a new material to preserve the assignment.

Exact steps for others to reproduce the error

Open the File and export the "base mesh" object as FBX or OBJ. Then reimport them as FBX or OBJ.

fbx export bug.blend

**System Information** Operating system: Windows 10 Graphics card: i3-8100 3.60Ghz **Blender Version** Broken: (3.3.1, 3.4.0 Alpha, ..., I dont think this is version specific) **Addon Information** Name: FBX format (4, 36, 3) Author: Campbell Barton, Bastien Montagne, Jens Restemeier **Short description of error** When exporting a mesh as FBX and it has an empty material slot is between two Materials, which are assigned to the mesh, blender mixes up the assignment. Probably because it removes the empty material slot. This also occurs when a mesh is assigned to the empty material slot. The Obj Exporter on the other hand handles this case correctly. When there is no mesh assigned to the Material the exporter deletes the slots but conserves the IDs. And then there is a mesh assigned to the empty slot it create a new material to preserve the assignment. **Exact steps for others to reproduce the error** Open the File and export the "base mesh" object as FBX or OBJ. Then reimport them as FBX or OBJ. [fbx export bug.blend](https://archive.blender.org/developer/F13648449/fbx_export_bug.blend)
Author
Contributor

Added subscriber: @F_Scociety

Added subscriber: @F_Scociety
Omar Emara changed title from FBX exporter mixes up the material ID's in some cases to FBX exporter mixes up the material IDs when there are empty material slots 2022-10-10 16:33:55 +02:00
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

I think this is a duplicate of #75982 which was resolved recently.

I think this is a duplicate of https://projects.blender.org/blender/blender-addons/issues/75982 which was resolved recently.
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2023-03-14 12:18:12 +01:00
Author
Contributor

I think this is a duplicate of #75982 which was resolved recently.

Yeah youre right. I closed it

> I think this is a duplicate of https://projects.blender.org/blender/blender-addons/issues/75982 which was resolved recently. Yeah youre right. I closed it
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#101724
No description provided.