From: eap Date: Fri, 8 May 2020 18:48:05 +0000 (+0300) Subject: #19078 [CEA] Mesh Group - Group on filter X-Git-Tag: V9_5_0b1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=822c54d2322806da5b46d5fabb20a824585f8ec2;p=modules%2Fgeom.git #19078 [CEA] Mesh Group - Group on filter --- diff --git a/src/GEOMBase/GEOMBase.cxx b/src/GEOMBase/GEOMBase.cxx index 3b96a5331..883dba0d3 100644 --- a/src/GEOMBase/GEOMBase.cxx +++ b/src/GEOMBase/GEOMBase.cxx @@ -745,7 +745,10 @@ bool GEOMBase::GetShape( GEOM::GEOM_Object_ptr object, TopoDS_Shape& shape, cons if ( !CORBA::is_nil( object ) ) { TopAbs_ShapeEnum stype = (TopAbs_ShapeEnum)( object->GetShapeType() ); if ( type == TopAbs_SHAPE || type == stype ) - shape = GEOM_Client::get_client().GetShape( GeometryGUI::GetGeomGen(), object ); + { + GEOM::GEOM_Gen_var gen = object->GetGen(); + shape = GEOM_Client::get_client().GetShape( gen, object ); + } } return !shape.IsNull(); }