Skipped meshes with no materials in MeshFeatureProcessor::SetRayTracingData

This commit is contained in:
Doug McDiarmid
2021-06-09 14:53:32 -07:00
parent 3c23f5fead
commit d94015f5e1
@@ -775,6 +775,12 @@ namespace AZ
material = materialAssignment.m_materialInstance;
}
if (!material)
{
AZ_Warning("MeshFeatureProcessor", false, "No material provided for mesh. Skipping.");
continue;
}
// retrieve vertex/index buffers
RPI::ModelLod::StreamBufferViewList streamBufferViews;
[[maybe_unused]] bool result = modelLod->GetStreamsForMesh(