/Engine/Source/Runtime/Engine/Classes/Components/StaticMeshComponent.h
Disable dynamic shadow casting if the primitive only casts indirect shadows, since dynamic shadows are always shadowing direct lighting
virtual bool GetShadowIndirectOnly() const