From 013eda84dcea4a427d406c5c75ba7870f4124b7f Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 20 Aug 2015 12:44:19 +0300 Subject: [PATCH] The external feature should be executed manually in order to return first result. --- src/PartSet/PartSet_Tools.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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(); } } -- 2.39.2