Refactor scene objects initialization to call OnAwake before all OnStart

#520
This commit is contained in:
Wojtek Figat
2022-07-17 17:05:59 +02:00
parent 9aff782907
commit 3239150a61
14 changed files with 59 additions and 114 deletions

View File

@@ -514,10 +514,10 @@ void Spline::OnTransformChanged()
BoundingSphere::FromBox(_box, _sphere);
}
void Spline::PostLoad()
void Spline::Initialize()
{
// Base
Actor::PostLoad();
Actor::Initialize();
auto& keyframes = Curve.GetKeyframes();
const int32 count = keyframes.Count();