]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
0022503: [CEA 1072] "Get Non Blocks" does not work on a set of faces
authorskv <skv@opencascade.com>
Thu, 6 Mar 2014 12:00:24 +0000 (16:00 +0400)
committerskv <skv@opencascade.com>
Thu, 6 Mar 2014 12:00:24 +0000 (16:00 +0400)
src/GEOM_I/GEOM_IBlocksOperations_i.cc [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 50c4e6f..55a9c3c
@@ -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);
 }