From b3fd96d72e8295136d4b16924eb66b6f3d3a8118 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Tue, 26 Aug 2014 10:13:35 +0200 Subject: [PATCH] Cell edge: Update texture also if none is cell result --- .../ModelVisualization/RivScalarMapperUtils.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/ApplicationCode/ModelVisualization/RivScalarMapperUtils.cpp b/ApplicationCode/ModelVisualization/RivScalarMapperUtils.cpp index 5a1622a90f..d525d34491 100644 --- a/ApplicationCode/ModelVisualization/RivScalarMapperUtils.cpp +++ b/ApplicationCode/ModelVisualization/RivScalarMapperUtils.cpp @@ -88,14 +88,11 @@ cvf::ref RivScalarMapperUtils::createCellEdgeEffect(cvf::DrawableGe } else { - if (cellResultSlot->hasResult()) - { - RivCellEdgeGeometryUtils::addCellEdgeResultsToDrawableGeo(timeStepIndex, cellResultSlot, cellEdgeResultSlot, - quadToCellFaceMapper, dg, gridIndex, opacityLevel); + RivCellEdgeGeometryUtils::addCellEdgeResultsToDrawableGeo(timeStepIndex, cellResultSlot, cellEdgeResultSlot, + quadToCellFaceMapper, dg, gridIndex, opacityLevel); - cvf::ScalarMapper* cellScalarMapper = cellResultSlot->legendConfig()->scalarMapper(); - cellFaceEffectGen.setScalarMapper(cellScalarMapper); - } + cvf::ScalarMapper* cellScalarMapper = cellResultSlot->legendConfig()->scalarMapper(); + cellFaceEffectGen.setScalarMapper(cellScalarMapper); } cellFaceEffectGen.setOpacityLevel(opacityLevel);