Merge pull request #1229 from aws-lumberyard-dev/Atom/dmcdiar/ATOM-15765
[ATOM-15765] Meshes without a material will cause a crash in MeshFeatureProcessor::SetRayTracingData
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user