From: nds Date: Wed, 18 Nov 2015 12:24:27 +0000 (+0300) Subject: The sketch solver error should be checked after nested sketch operation check. X-Git-Tag: V_2.0.0~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=016731c0f4f61913046cfac7ee8f05c85e8fb2a5;hp=a6d1e8be5db1d94fdee39c412b8393d74bfcca2f;p=modules%2Fshaper.git The sketch solver error should be checked after nested sketch operation check. The sketch operation should not be committed --- diff --git a/src/PartSet/PartSet_SketcherReetntrantMgr.cpp b/src/PartSet/PartSet_SketcherReetntrantMgr.cpp index 5e45abfee..5239265c7 100755 --- a/src/PartSet/PartSet_SketcherReetntrantMgr.cpp +++ b/src/PartSet/PartSet_SketcherReetntrantMgr.cpp @@ -181,18 +181,17 @@ void PartSet_SketcherReetntrantMgr::onNoMoreWidgets(const std::string& thePrevio if (!myWorkshop->module()->getFeatureError(aFOperation->feature()).isEmpty()) return; - bool isStarted = false; - bool isSketchSolverError = module()->sketchMgr()->sketchSolverError(); - if (!isSketchSolverError && - aFOperation && PartSet_SketcherMgr::isNestedSketchOperation(aFOperation)) { - if (myRestartingMode != RM_Forbided) { - myRestartingMode = RM_LastFeatureUsed; - isStarted = startInternalEdit(thePreviousAttributeID); + if (aFOperation && PartSet_SketcherMgr::isNestedSketchOperation(aFOperation)) { + bool isStarted = false; + if (!module()->sketchMgr()->sketchSolverError()) { + if (myRestartingMode != RM_Forbided) { + myRestartingMode = RM_LastFeatureUsed; + isStarted = startInternalEdit(thePreviousAttributeID); + } } + if (!isStarted) + aFOperation->commit(); } - - if (!isStarted) - aFOperation->commit(); } bool PartSet_SketcherReetntrantMgr::processEnter(const std::string& thePreviousAttributeID)