diff --git a/Source/Engine/Level/Actors/Spline.cpp b/Source/Engine/Level/Actors/Spline.cpp index e16ff915e..08a06d433 100644 --- a/Source/Engine/Level/Actors/Spline.cpp +++ b/Source/Engine/Level/Actors/Spline.cpp @@ -416,6 +416,8 @@ void Spline::UpdateSpline() last.TangentIn = first.TangentIn; last.TangentOut = first.TangentOut; } + + SplineUpdated(); } void Spline::GetKeyframes(MonoArray* data) diff --git a/Source/Engine/Level/Actors/Spline.h b/Source/Engine/Level/Actors/Spline.h index c712695d3..7d7e8dcb1 100644 --- a/Source/Engine/Level/Actors/Spline.h +++ b/Source/Engine/Level/Actors/Spline.h @@ -348,6 +348,11 @@ public: public: + /// + /// Called when spline gets updated (eg. after curve modification). + /// + API_EVENT() Action SplineUpdated; + /// /// Updates the spline after it was modified. Recreates the collision and/or any cached state that depends on the spline type. ///