Skip to content

Commit

Permalink
[qt6][qtAliceVision] FloatImageViewer: Use correct material for fisheye
Browse files Browse the repository at this point in the history
  • Loading branch information
servantftechnicolor authored and cbentejac committed Oct 11, 2024
1 parent b58a4aa commit d54e58c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qtAliceVision/FloatImageViewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ namespace

void setFisheye(float aspectRatio, float fisheyeCircleRadius, QVector2D fisheyeCircleCoord)
{
auto* m = static_cast<FloatImageViewerMaterial*>(_gridNode->material());
auto* m = static_cast<FloatImageViewerMaterial*>(material());
m->uniforms.aspectRatio = aspectRatio;
m->uniforms.fisheyeCircleRadius = fisheyeCircleRadius;
m->uniforms.fisheyeCircleCoord = fisheyeCircleCoord;
Expand All @@ -273,7 +273,7 @@ namespace

void resetFisheye()
{
auto* m = static_cast<FloatImageViewerMaterial*>(_gridNode->material());
auto* m = static_cast<FloatImageViewerMaterial*>(material());
m->uniforms.fisheyeCircleRadius = 0.f;
m->dirtyUniforms = true;
markDirty(DirtyMaterial);
Expand Down

0 comments on commit d54e58c

Please sign in to comment.