From 12fb7d3ba34c7dae4d0ba4f65bd2eee0077e9cab Mon Sep 17 00:00:00 2001 From: mpv Date: Fri, 6 Oct 2017 19:24:53 +0300 Subject: [PATCH] Fix for the problem of selection of the circle center as a start point of line of another sketch. --- src/SketchPlugin/SketchPlugin_Projection.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/SketchPlugin/SketchPlugin_Projection.cpp b/src/SketchPlugin/SketchPlugin_Projection.cpp index 9b8f4e4b8..a0d8090c8 100644 --- a/src/SketchPlugin/SketchPlugin_Projection.cpp +++ b/src/SketchPlugin/SketchPlugin_Projection.cpp @@ -147,6 +147,7 @@ void SketchPlugin_Projection::computeProjection(const std::string& theID) if (hasPrevProj && !isValidProjectionType(aProjection, anEdge, aVertex)) { DocumentPtr aDoc = sketch()->document(); + aRefAttr->setObject(data()->owner()); // to not remove of this remove reference to aProjection std::set aFeaturesToBeRemoved; aFeaturesToBeRemoved.insert(aProjection); ModelAPI_Tools::removeFeaturesAndReferences(aFeaturesToBeRemoved); -- 2.39.2