diff --git a/src/qtAliceVision/FloatImageViewer.cpp b/src/qtAliceVision/FloatImageViewer.cpp index dc7a4b5e..db0e1498 100644 --- a/src/qtAliceVision/FloatImageViewer.cpp +++ b/src/qtAliceVision/FloatImageViewer.cpp @@ -263,7 +263,7 @@ namespace void setFisheye(float aspectRatio, float fisheyeCircleRadius, QVector2D fisheyeCircleCoord) { - auto* m = static_cast(_gridNode->material()); + auto* m = static_cast(material()); m->uniforms.aspectRatio = aspectRatio; m->uniforms.fisheyeCircleRadius = fisheyeCircleRadius; m->uniforms.fisheyeCircleCoord = fisheyeCircleCoord; @@ -273,7 +273,7 @@ namespace void resetFisheye() { - auto* m = static_cast(_gridNode->material()); + auto* m = static_cast(material()); m->uniforms.fisheyeCircleRadius = 0.f; m->dirtyUniforms = true; markDirty(DirtyMaterial);