Skip to content

Commit f9e62b1

Browse files
committed
Had position control behavior swapped, swap it back to the intended implementation
1 parent 2c6e60d commit f9e62b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/RunActivity/Viewer3D/SuperElevation.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -743,9 +743,9 @@ public override ShapePrimitive BuildPrimitive(Viewer viewer, int iLOD, int iLODI
743743
// Check if this vertex should be translated by superelevation
744744
bool reposition = v.PositionControl != Vertex.VertexPositionControl.None;
745745

746-
if (Math.Sign(p.X) == Direction && v.PositionControl == Vertex.VertexPositionControl.Inside)
746+
if (Math.Sign(p.X) == Direction && v.PositionControl == Vertex.VertexPositionControl.Outside)
747747
reposition = false;
748-
else if (Math.Sign(p.X) == -Direction && v.PositionControl == Vertex.VertexPositionControl.Outside)
748+
else if (Math.Sign(p.X) == -Direction && v.PositionControl == Vertex.VertexPositionControl.Inside)
749749
reposition = false;
750750

751751
if (reposition)

0 commit comments

Comments
 (0)