X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_Make2DFrom3DOp.cxx;h=69cf9cc6128321039808375da7362c6a424541a8;hb=7a6c94b9e00d2705d46556e0378aa6ae8f804cb3;hp=f03216cbe343847b62b0818843895251ec3f15b0;hpb=8d297d6698f361d4f2dde723050bcfbaea050920;p=modules%2Fsmesh.git diff --git a/src/SMESHGUI/SMESHGUI_Make2DFrom3DOp.cxx b/src/SMESHGUI/SMESHGUI_Make2DFrom3DOp.cxx index f03216cbe..69cf9cc61 100644 --- a/src/SMESHGUI/SMESHGUI_Make2DFrom3DOp.cxx +++ b/src/SMESHGUI/SMESHGUI_Make2DFrom3DOp.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2020 CEA/DEN, EDF R&D, OPEN CASCADE // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -469,7 +469,10 @@ bool SMESHGUI_Make2DFrom3DOp::compute2DMesh( QStringList& theEntryList ) for ( int i = 0; i < entries.count(); ++i ) if ( SMESH_Actor* actor = SMESH::FindActorByEntry( entries[i].toUtf8().constData() )) - SMESH::Update(actor->getIO(),actor->GetVisibility()); + { + actor->SetEntityMode( actor->GetEntityMode() | SMESH_Actor::eFaces ); + SMESH::Update( actor->getIO(), actor->GetVisibility() ); + } SMESH::RepaintCurrentView(); } }