Fixed an issue with Actors where the material slot IDs were incorrect, and caused the displayed slot labels to be all "<unknown>" (and likely other issues).
Signed-off-by: santorac <55155825+santorac@users.noreply.github.com>
This commit is contained in:
@@ -640,12 +640,7 @@ namespace AZ
|
||||
Aabb localAabb = lod.m_subMeshProperties[i].m_aabb;
|
||||
modelLodCreator.SetMeshAabb(AZStd::move(localAabb));
|
||||
|
||||
// Create a separate material slot for each sub-mesh
|
||||
AZ::RPI::ModelMaterialSlot materialSlot;
|
||||
materialSlot.m_stableId = i;
|
||||
materialSlot.m_defaultMaterialAsset = lod.m_subMeshProperties[i].m_material;
|
||||
|
||||
modelLodCreator.SetMeshMaterialSlot(materialSlot);
|
||||
modelLodCreator.SetMeshMaterialSlot(lod.m_subMeshProperties[i].m_materialSlot);
|
||||
|
||||
modelLodCreator.EndMesh();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user