From: nds Date: Tue, 31 Jan 2017 08:17:52 +0000 (+0300) Subject: Issue #1487 external edges are created wrong X-Git-Tag: V_2.7.0~300 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4c82c364b298ebdb1c1d89d69e5086c33df52f2b;p=modules%2Fshaper.git Issue #1487 external edges are created wrong --- diff --git a/src/SketchPlugin/SketchPlugin_Sketch.cpp b/src/SketchPlugin/SketchPlugin_Sketch.cpp index 4de9585ee..9f6b63a77 100755 --- a/src/SketchPlugin/SketchPlugin_Sketch.cpp +++ b/src/SketchPlugin/SketchPlugin_Sketch.cpp @@ -295,8 +295,8 @@ FeaturePtr SketchPlugin_Sketch::addUniqueNamedCopiedFeature(FeaturePtr theFeatur theFeature->data()->copyTo(aNewFeature->data()); // external state should not be copied as a new object is an object of the current sketch if (theFeature->selection(SketchPlugin_SketchEntity::EXTERNAL_ID()).get()) - theFeature->selection(SketchPlugin_SketchEntity::EXTERNAL_ID())->setValue(ResultPtr(), - GeomShapePtr()); + aNewFeature->selection(SketchPlugin_SketchEntity::EXTERNAL_ID())->setValue(ResultPtr(), + GeomShapePtr()); aNewFeature->data()->setName(aUniqueFeatureName); // text expressions could block setValue of some attributes SketchPlugin_Tools::clearExpressions(aNewFeature);