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); }