wait render to finish if a sensor camera is stopped

This commit is contained in:
bernatx 2023-06-09 15:57:44 +02:00 committed by bernat
parent d5fb48eb5f
commit 59fb4b3ede
1 changed files with 1 additions and 0 deletions

View File

@ -607,6 +607,7 @@ void ASceneCaptureSensor::PostPhysTick(UWorld *World, ELevelTick TickType, float
void ASceneCaptureSensor::EndPlay(const EEndPlayReason::Type EndPlayReason)
{
Super::EndPlay(EndPlayReason);
FlushRenderingCommands();
SCENE_CAPTURE_COUNTER = 0u;
}