]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2319: AttributeError: 'NoneType' object has no attribute 'isVertex' in model...
authordbv <dbv@opencascade.com>
Fri, 8 Dec 2017 07:36:47 +0000 (10:36 +0300)
committerdbv <dbv@opencascade.com>
Fri, 8 Dec 2017 07:38:45 +0000 (10:38 +0300)
Some improvements in naming.

src/FeaturesPlugin/FeaturesPlugin_Union.cpp

index 66bef610ccf6784882a93a7291050995f306fa57..8b1a811a262f2cd5aad1b43fd13c5c9d29c0026b 100644 (file)
@@ -173,16 +173,19 @@ void FeaturesPlugin_Union::execute()
   const int aDeletedTag = 3;
   /// sub solids will be placed at labels 4, 5 etc. if result is compound of solids
   const int aSubsolidsTag = 4;
-  const std::string aModName = "Modified";
+  const std::string aModEName = "Modified_Edge";
+  const std::string aModFName = "Modified_Face";
 
   std::shared_ptr<ModelAPI_ResultBody> aResultBody = document()->createBody(data());
   aResultBody->storeModified(anObjects.front(), aShape, aSubsolidsTag);
 
   for(ListOfShape::const_iterator anIter = anObjects.begin(); anIter != anObjects.end(); ++anIter) {
     aResultBody->loadAndOrientModifiedShapes(&aMakeShapeList, *anIter, GeomAPI_Shape::EDGE,
-                                             aModifyEdgeTag, aModName, aMapOfShapes);
+                                             aModifyEdgeTag, aModEName, aMapOfShapes,
+                                             false, false, true);
     aResultBody->loadAndOrientModifiedShapes(&aMakeShapeList, *anIter, GeomAPI_Shape::FACE,
-                                             aModifyFaceTag, aModName, aMapOfShapes);
+                                             aModifyFaceTag, aModFName, aMapOfShapes,
+                                             false, false, true);
     aResultBody->loadDeletedShapes(&aMakeShapeList, *anIter, GeomAPI_Shape::FACE, aDeletedTag);
   }