Skip to content

Commit 3b09e31

Browse files
committed
Ensure return points still move parent to lap point
1 parent b2e2805 commit 3b09e31

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Plugins/TurboLibrary/Editors/MapEditor/CubePath/CubePathPoint.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,16 @@ public ReturnPointPickable(RenderablePathPoint point)
288288
var translation = ParentPoint.Transform.Position + Transform.Position;
289289
Transform.SetCustomOrigin(translation);
290290

291+
ParentPoint.Transform.CustomRotationActionCallback += (sender, e) =>
292+
{
293+
var arguments = (GLTransform.CustomRotationArgs)sender;
294+
ParentPoint.Transform.Rotation = arguments.Rotation;
295+
296+
// Apply to return points
297+
this.Transform.Rotation = arguments.Rotation;
298+
this.Transform.UpdateMatrix(true);
299+
};
300+
291301
Transform.EnableCollisionDrop = false;
292302
Transform.IndividualPivot = true;
293303
Transform.CustomScaleActionCallback += (sender, e) =>

0 commit comments

Comments
 (0)