Fixed initialization issues with dynamic lights.

Actors get initialized from their defaults so anything done in the constructor or some explicit member initialization will be overwritten.
They must use their properties for setting up configurable fields and do the rest in BeginPlay.
This commit is contained in:
Christoph Oelckers 2018-04-25 09:14:01 +02:00
commit 1648fc6a07
3 changed files with 6 additions and 3 deletions

View file

@ -167,6 +167,7 @@ void ADynamicLight::BeginPlay()
specialf1 = DAngle(double(SpawnAngle)).Normalized360().Degrees;
visibletoplayer = true;
mShadowmapIndex = 1024;
}
//==========================================================================