From 63736f28218dd0cef510d5cf19dc4d4b949f9beb Mon Sep 17 00:00:00 2001 From: azv Date: Wed, 17 May 2017 11:30:08 +0300 Subject: [PATCH] Fix jumping a feature to the Origin while moving --- src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Storage.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Storage.cpp b/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Storage.cpp index 1cefde032..6df3ccac6 100644 --- a/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Storage.cpp +++ b/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Storage.cpp @@ -441,6 +441,9 @@ void PlaneGCSSolver_Storage::refresh() const std::map::const_iterator anIt = myAttributeMap.begin(); for (; anIt != myAttributeMap.end(); ++anIt) { + if (!anIt->first->isInitialized()) + continue; + // the external feature always should keep the up to date values, so, // refresh from the solver is never needed if (isExternalAttribute(anIt->first)) -- 2.39.2