From: skv Date: Thu, 6 Mar 2014 12:00:24 +0000 (+0400) Subject: 0022503: [CEA 1072] "Get Non Blocks" does not work on a set of faces X-Git-Tag: V7_4_0a1~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a6fe4c1ad01d6cd347b72576341940d01d21006f;p=modules%2Fgeom.git 0022503: [CEA 1072] "Get Non Blocks" does not work on a set of faces --- diff --git a/src/GEOM_I/GEOM_IBlocksOperations_i.cc b/src/GEOM_I/GEOM_IBlocksOperations_i.cc old mode 100644 new mode 100755 index 50c4e6fd3..55a9c3c70 --- a/src/GEOM_I/GEOM_IBlocksOperations_i.cc +++ b/src/GEOM_I/GEOM_IBlocksOperations_i.cc @@ -766,12 +766,15 @@ GEOM::GEOM_Object_ptr GEOM_IBlocksOperations_i::GetNonBlocks //Get the result Handle(GEOM_Object) aFaces; Handle(GEOM_Object) anObject = GetOperations()->GetNonBlocks(aShape, aFaces); - if (!GetOperations()->IsDone() || anObject.IsNull()) + if (!GetOperations()->IsDone()) return aGEOMObject._retn(); if (!aFaces.IsNull()) theNonQuads = GetObject(aFaces); + if (anObject.IsNull()) + return aGEOMObject._retn(); + return GetObject(anObject); }