From 2ce3226c21dd0ab65a7abaf1cdcec36cc4c09dcc Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 23 Mar 2014 15:13:17 +0200 Subject: [PATCH] Stuff created paths into the list so they can be cleared later --- source/designer/designer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/designer/designer.cpp b/source/designer/designer.cpp index 32fe423..1cad9eb 100644 --- a/source/designer/designer.cpp +++ b/source/designer/designer.cpp @@ -619,6 +619,7 @@ void Designer::show_route(const Route &route) path->set_color(GL::Color(0.5, 0.8, 1.0)); if(unsigned taddr = (*i)->get_turnout_address()) path->set_path(route.get_turnout(taddr)); + highlight_paths.push_back(path); } } @@ -632,5 +633,6 @@ void Designer::show_zone(const Zone &zone) Track3D &t3d = layout_3d->get_3d(**i); Path3D *path = new Path3D(t3d); path->set_color(GL::Color(0.8, 1.0, 0.5)); + highlight_paths.push_back(path); } } -- 2.43.0