From 86f443b77eaf44abc54d5334789255b69bdb5e40 Mon Sep 17 00:00:00 2001 From: rnv Date: Mon, 8 Aug 2011 07:59:54 +0000 Subject: [PATCH] Fix for the '21341: [CEA 496] impossible to modify color in "feature edge" mode' issue. --- src/VISUGUI/VisuGUI.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index e67f340e..e040c8df 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -1308,6 +1308,7 @@ VisuGUI break; case VISU::WIREFRAME : case VISU::INSIDEFRAME : + case VISU::FEATURE_EDGES : anOldColor = aMesh->GetLinkColor(); break; case VISU::SHADED : @@ -1340,6 +1341,7 @@ VisuGUI break; case VISU::SHADED : case VISU::SURFACEFRAME : + case VISU::FEATURE_EDGES : aMesh->SetCellColor(aNewColor); break; } @@ -3243,7 +3245,7 @@ VisuGUI mgr->setRule( action( VISU_CELL_COLOR ), aRule + " and type='VISU::TMESH' and representation='VISU::SURFACEFRAME'" ); mgr->setRule( action( VISU_EDGE_COLOR ), aRule + aSurfFrameType + " and representation='VISU::SURFACEFRAME'" ); mgr->setRule( action( VISU_COLOR ), aRule + " and ((type='VISU::TMESH'" - " and $representation in {'VISU::POINT' 'VISU::WIREFRAME' 'VISU::SHADED' 'VISU::INSIDEFRAME'}) " + " and $representation in {'VISU::POINT' 'VISU::WIREFRAME' 'VISU::SHADED' 'VISU::INSIDEFRAME' 'VISU::FEATURE_EDGES'}) " "or (type='VISU::TDEFORMEDSHAPE' and hasActor=1))" ); mgr->setRule( action( VISU_OPACITY ), aRule + " and hasActor=1" ); mgr->setRule( action( VISU_LINE_WIDTH ), aRule + aLineType + " and hasActor=1 and representation!='VISU::POINT'" ); -- 2.39.2