Refactor scene objects initialization to call OnAwake before all OnStart
#520
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -373,7 +373,7 @@ public:
|
||||
void OnDebugDrawSelected() override;
|
||||
#endif
|
||||
void OnTransformChanged() override;
|
||||
void PostLoad() override;
|
||||
void Initialize() override;
|
||||
void Serialize(SerializeStream& stream, const void* otherObj) override;
|
||||
void Deserialize(DeserializeStream& stream, ISerializeModifier* modifier) override;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user