From: rnv Date: Fri, 20 Feb 2009 12:51:31 +0000 (+0000) Subject: Fix for issue 0020167( EDF VISU 956 : [TUI ] AddMeshOnGroup is not fully taken into... X-Git-Tag: V4_1_0_maintainance_20090306~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=adf9a180041bb8ed070b9c2d2faa038724461f49;p=modules%2Fvisu.git Fix for issue 0020167( EDF VISU 956 : [TUI ] AddMeshOnGroup is not fully taken into account) in 4X version. --- diff --git a/src/PIPELINE/VISU_ScalarMapPL.cxx b/src/PIPELINE/VISU_ScalarMapPL.cxx index 4b4c1b50..f1b4914f 100644 --- a/src/PIPELINE/VISU_ScalarMapPL.cxx +++ b/src/PIPELINE/VISU_ScalarMapPL.cxx @@ -181,6 +181,12 @@ int VISU_ScalarMapPL ::AddGeometry(vtkDataSet* theGeometry) { + // rnv: to fix issue 0020167 (AddMeshOnGroup is not fully taken into account) + // clear all inpust of the this->myAppendFilter in case if presentation + // constructed on the entire mesh. + if(!IsExternalGeometryUsed()) + ClearGeometry(); + myAppendFilter->AddInput(theGeometry); return GetNumberOfGeometry(); }