I am using a Scene Capture Component with the Lumen GI method in UE 5.1.
Whenever this Scene Capture is looking at a Mesh that changes its Overlay Material, I get the following error:
Ensure condition failed: ScenePrimitiveInfo->LumenPrimitiveGroupIndices.Num() == 0 [File:D:\build\++UE5\Sync\Engine\Source\Runtime\Renderer\Private\Lumen\LumenScene.cpp] [Line: 872]
.
In an actual build, this ensure leads to a fatal error.
The Overlay Material is a Fresnel emissive material that activates when interacting with something.
The error still happens even if the object is ‘Hidden In Scene Capture’.