When exporting materials, the expected behavior is that each material should retain its assigned name.
Actual Behaviour
Materials are being exported with an empty string as their name instead of using the material name property. This issue causes inconsistencies when re-importing as fbx, as the material info is not correctly preserved.
Steps to reproduce
Assign a material with specific name to an object in the scene.
Export the scene and its materials using the fbx export.
Open the exported file and check that the material names are missing.
Expected Behaviour
When exporting materials, the expected behavior is that each material should retain its assigned name.
Actual Behaviour
Materials are being exported with an empty string as their name instead of using the material name property. This issue causes inconsistencies when re-importing as fbx, as the material info is not correctly preserved.
Steps to reproduce
Sample Code that illustrates the problem
https://github.com/adobe/USD-Fileformat-plugins/blob/main/fbx/src/fbxExport.cpp#L961
=> FbxSurfacePhong::Create(ctx.fbx, materialName);