From 270a9651ea7a1cd51a43e98a55f5cee77896ffa6 Mon Sep 17 00:00:00 2001 From: m-kro Date: Thu, 26 Oct 2023 14:29:22 +0200 Subject: [PATCH] fix ref #13993 Signed-off-by: m-kro --- src/osgview/GUIOSGBuilder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgview/GUIOSGBuilder.cpp b/src/osgview/GUIOSGBuilder.cpp index af8aae5178d..426f992d58a 100644 --- a/src/osgview/GUIOSGBuilder.cpp +++ b/src/osgview/GUIOSGBuilder.cpp @@ -185,7 +185,7 @@ GUIOSGBuilder::buildOSGEdgeGeometry(const MSEdge& edge, if (extrude) { int index = upperShapeSize; for (int k = 0; k < upperShapeSize + sizeDiff; ++k, ++index) { - (*osg_coords)[index].set((*osg_coords)[k].x(), (*osg_coords)[k].y(), 0.); + (*osg_coords)[index].set((*osg_coords)[k].x(), (*osg_coords)[k].y(), (*osg_coords)[k].z() - zOffset); } // extrude edge to create the kerb for (int i = 0; i < upperShapeSize + sizeDiff; ++i) {