Skip to content

Commit

Permalink
Fixed an issue where direction Lines did not update the end parent pr…
Browse files Browse the repository at this point in the history
…operly
  • Loading branch information
FilipAlg committed Aug 22, 2024
1 parent 0bb3931 commit 55c552b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Editor/AGXUnityEditor/Tools/LineTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@ private void Synchronize()
if ( Mode != ToolMode.Direction || !Line.Valid )
return;

Line.End.SetParent(Line.Start.Parent);
Line.End.Position = Line.Start.Position + Line.Start.Rotation * Vector3.back;
Line.End.Rotation = Line.Start.Rotation;
}

private bool ConfigurationToolActive()
Expand Down

0 comments on commit 55c552b

Please sign in to comment.