From a6fe4c1ad01d6cd347b72576341940d01d21006f Mon Sep 17 00:00:00 2001 From: skv Date: Thu, 6 Mar 2014 16:00:24 +0400 Subject: [PATCH] 0022503: [CEA 1072] "Get Non Blocks" does not work on a set of faces --- src/GEOM_I/GEOM_IBlocksOperations_i.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) mode change 100644 => 100755 src/GEOM_I/GEOM_IBlocksOperations_i.cc 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); } -- 2.39.2