Skipped meshes with no materials in MeshFeatureProcessor::SetRayTracingData

monroegm-disable-blank-issue-2
Doug McDiarmid 5 years ago
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(

Loading…
Cancel
Save