Skip to content

Commit

Permalink
rubber band 3d: do not flip axes anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Nov 6, 2024
1 parent 8268906 commit 9d3f419
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/3d/qgsrubberband3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ QgsRubberBand3D::QgsRubberBand3D( Qgs3DMapSettings &map, QgsWindow3DEngine *engi
mLineEntity->addComponent( mLineMaterial );

Qt3DCore::QTransform *lineTransform = new Qt3DCore::QTransform;
lineTransform->setRotation( QQuaternion::fromAxisAndAngle( QVector3D( 1, 0, 0 ), -90 ) ); // flip map (x,y,z) to world (x,z,-y)
mLineEntity->addComponent( lineTransform );

// Rubberband vertex markers
Expand All @@ -105,7 +104,6 @@ QgsRubberBand3D::QgsRubberBand3D( Qgs3DMapSettings &map, QgsWindow3DEngine *engi
mMarkerEntity->addComponent( mMarkerGeometryRenderer );

Qt3DCore::QTransform *markerTransform = new Qt3DCore::QTransform;
markerTransform->setRotation( QQuaternion::fromAxisAndAngle( QVector3D( 1, 0, 0 ), -90 ) ); // flip map (x,y,z) to world (x,z,-y)
mMarkerEntity->addComponent( markerTransform );
}

Expand Down

0 comments on commit 9d3f419

Please sign in to comment.