Apply fix for Sensor as Marcel implemented (#8344)
This commit is contained in:
parent
c37d00d671
commit
2b2a2a1b83
|
@ -710,10 +710,12 @@ void ASceneCaptureSensor::BeginPlay()
|
|||
UpdatePostProcessConfig(PostProcessConfig);
|
||||
CaptureComponent2D->ShowFlags = PostProcessConfig.EngineShowFlags;
|
||||
CaptureComponent2D->PostProcessSettings = PostProcessConfig.PostProcessSettings;
|
||||
|
||||
|
||||
// This ensures the camera is always spawning the raindrops in case the
|
||||
// weather was previously set to have rain.
|
||||
GetEpisode().GetWeather()->NotifyWeather(this);
|
||||
auto Weather = GetEpisode().GetWeather();
|
||||
if (Weather != nullptr)
|
||||
Weather->NotifyWeather(this);
|
||||
|
||||
Super::BeginPlay();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue