X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Flayout.cpp;h=1bbbed825bb68f493547046fa8051a60fbdb8b1b;hb=a4a6af55ad5a9bfa14067532b1d1c914ef4c6668;hp=db419d3639065c2e76a574702ebfe062085b6eae;hpb=4049f5bdacfdb61247f3c74fc5f748990be7bd4d;p=r2c2.git diff --git a/source/3d/layout.cpp b/source/3d/layout.cpp index db419d3..1bbbed8 100644 --- a/source/3d/layout.cpp +++ b/source/3d/layout.cpp @@ -1,3 +1,4 @@ +#include "beamgate.h" #include "layout.h" #include "signal.h" #include "track.h" @@ -64,6 +65,8 @@ void Layout3D::object_added(Object &o) new Signal3D(*this, *s); else if(Vehicle *v = dynamic_cast(&o)) new Vehicle3D(*this, *v); + else if(BeamGate *g = dynamic_cast(&o)) + new BeamGate3D(*this, *g); } void Layout3D::object_removed(Object &o)