]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
The external feature should be executed manually in order to return first result.
authornds <natalia.donis@opencascade.com>
Thu, 20 Aug 2015 09:44:19 +0000 (12:44 +0300)
committernds <natalia.donis@opencascade.com>
Thu, 20 Aug 2015 09:44:46 +0000 (12:44 +0300)
src/PartSet/PartSet_Tools.cpp

index 7644c7268abcaf402450d673e7e36d8a4b8f2a08..a44a47e0b2b43792291f2c30d6930ec3552f059c 100755 (executable)
@@ -518,14 +518,14 @@ ResultPtr PartSet_Tools::createFixedObjectByExternal(const TopoDS_Shape& theShap
         anEdge->setImpl(new TopoDS_Shape(theShape));
 
         anAttr->setValue(aRes, anEdge);
-        if (!theTemporary) {
+        //if (!theTemporary) {
           aMyFeature->execute();
 
           // fix this edge
           FeaturePtr aFix = theSketch->addFeature(SketchPlugin_ConstraintRigid::ID());
           aFix->data()->refattr(SketchPlugin_Constraint::ENTITY_A())->
             setObject(aMyFeature->lastResult());
-        }
+        //}
         return aMyFeature->lastResult();
       }
     }
@@ -545,14 +545,14 @@ ResultPtr PartSet_Tools::createFixedObjectByExternal(const TopoDS_Shape& theShap
         aVert->setImpl(new TopoDS_Shape(theShape));
 
         anAttr->setValue(aRes, aVert);
-        if (theTemporary) {
+        //if (theTemporary) {
           aMyFeature->execute();
 
           // fix this edge
           FeaturePtr aFix = theSketch->addFeature(SketchPlugin_ConstraintRigid::ID());
           aFix->data()->refattr(SketchPlugin_Constraint::ENTITY_A())->
             setObject(aMyFeature->lastResult());
-        }
+        //}
         return aMyFeature->lastResult();
       }
     }