X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Fbeamgate.cpp;h=698cb4595ac5fa1091993ad78842b855ee9ca0c6;hb=d41f66805bc9fe0b33e3d46b47f52e67b5782028;hp=614bce9657916152431cda52c1ce0853ba76c318;hpb=a4a6af55ad5a9bfa14067532b1d1c914ef4c6668;p=r2c2.git diff --git a/source/libr2c2/beamgate.cpp b/source/libr2c2/beamgate.cpp index 614bce9..698cb45 100644 --- a/source/libr2c2/beamgate.cpp +++ b/source/libr2c2/beamgate.cpp @@ -54,9 +54,10 @@ void BeamGate::update_attachment() if(track) { - TrackPoint tp = track->get_point(track.entry(), offset); - position = tp.pos; - rotation = tp.dir; + OrientedPoint p = track.point(); + position = p.position; + rotation = p.rotation; + tilt = p.tilt; } }