From: nds Date: Thu, 20 Aug 2015 09:44:19 +0000 (+0300) Subject: The external feature should be executed manually in order to return first result. X-Git-Tag: V_1.4.0_beta4~322 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=013eda84dcea4a427d406c5c75ba7870f4124b7f;p=modules%2Fshaper.git The external feature should be executed manually in order to return first result. --- diff --git a/src/PartSet/PartSet_Tools.cpp b/src/PartSet/PartSet_Tools.cpp index 7644c7268..a44a47e0b 100755 --- a/src/PartSet/PartSet_Tools.cpp +++ b/src/PartSet/PartSet_Tools.cpp @@ -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(); } }