Files
UnrealEngineUWP/Engine/Source/Runtime/StaticMeshDescription
alexis matte e43b81ce13 Ensure the nanite hires meshdescription materials are in the same order has the LOD 0 meshdescription materials. We use the imported material name to reorder them properly.
- If there is some material that do not find a match, those materials will stay in the imported order. The import will output a log message saying the material names do not match.
- If there is less material in the hires mesh description, the import will create empty section in the hires mesh to ensure the order of the materials. No log message will be output in that case.
-If there is more material in the hires mesh description, the import will transfer extra material section triangle to the first valid hires material section data (i.e. this should be matching the LOD 0 first material section)

We do this reorder when we import a hires nanite mesh and also if we have already a hires mesh description and we re-import the LOD 0 base mesh. This ensure we always have the hires meshdescription materials in the same order of the LOD 0.

#jira UE-179144
#rb jeanluc.corenthin
#rnx
#preflight 6426fd09c463fac9c8833dcd

[CL 24876565 by alexis matte in ue5-main branch]
2023-03-31 15:18:03 -04:00
..