Skip to content

Commit

Permalink
fix ref #13993
Browse files Browse the repository at this point in the history
Signed-off-by: m-kro <m.barthauer@t-online.de>
  • Loading branch information
m-kro committed Oct 26, 2023
1 parent 56cc971 commit 270a965
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/osgview/GUIOSGBuilder.cpp
Expand Up @@ -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) {
Expand Down

0 comments on commit 270a965

Please sign in to comment.