]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Disable update of sketch parameters from solver
authorazv <azv@opencascade.com>
Wed, 23 Dec 2015 12:10:47 +0000 (15:10 +0300)
committerazv <azv@opencascade.com>
Wed, 23 Dec 2015 12:10:47 +0000 (15:10 +0300)
src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Storage.cpp

index 8cdc2204076207d264946fd9340c8b2a581243d8..b28e1b63da859e5d9bdb4ff8a1d96a42547eed54 100644 (file)
@@ -1621,6 +1621,11 @@ void SolveSpaceSolver_Storage::refresh(bool theFixedOnly) const
         std::dynamic_pointer_cast<SketchPlugin_Feature>(anIt->first->owner());
       if (aSketchFeature.get() && aSketchFeature->isExternal())
         continue;
+      // not need to refresh here sketch's origin and normal vector
+      CompositeFeaturePtr aSketch =
+          std::dynamic_pointer_cast<ModelAPI_CompositeFeature>(anIt->first->owner());
+      if (aSketch)
+        continue;
     }
 
     // update parameter wrappers and obtain values of attributes