From: azv Date: Mon, 3 Apr 2017 14:46:06 +0000 (+0300) Subject: Issue #2052: Modification of parameters don't work (sketch, extrusion) X-Git-Tag: V_2.7.0~89 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=38dd97c8f7a3605ec6c362c3aefdefa3ee2675be;p=modules%2Fshaper.git Issue #2052: Modification of parameters don't work (sketch, extrusion) Fix problem with sketch update --- diff --git a/src/Model/Model_Session.cpp b/src/Model/Model_Session.cpp index c73516a43..98a1340f9 100644 --- a/src/Model/Model_Session.cpp +++ b/src/Model/Model_Session.cpp @@ -504,8 +504,7 @@ void Model_Session::registerPlugin(ModelAPI_Plugin* thePlugin) { myPluginObjs[myCurrentPluginName] = thePlugin; static Events_ID EVENT_LOAD = Events_Loop::loop()->eventByName(EVENT_PLUGIN_LOADED); - ModelAPI_EventCreator::get()->sendUpdated(ObjectPtr(), EVENT_LOAD); - Events_Loop::loop()->flush(EVENT_LOAD); + ModelAPI_EventCreator::get()->sendUpdated(ObjectPtr(), EVENT_LOAD, false); // If the plugin has an ability to process GUI events, register it Events_Listener* aListener = dynamic_cast(thePlugin); if (aListener) { diff --git a/src/SketchSolver/SketchSolver_ConstraintMultiRotation.cpp b/src/SketchSolver/SketchSolver_ConstraintMultiRotation.cpp index 3288c9830..2a91c6285 100644 --- a/src/SketchSolver/SketchSolver_ConstraintMultiRotation.cpp +++ b/src/SketchSolver/SketchSolver_ConstraintMultiRotation.cpp @@ -58,9 +58,8 @@ void SketchSolver_ConstraintMultiRotation::process() EntityWrapperPtr anAngle; EntityWrapperPtr aRotationCenter; - bool isFullValue; std::list aBaseEntities; - getAttributes(aRotationCenter, anAngle, isFullValue, aBaseEntities); + getAttributes(aRotationCenter, anAngle, myIsFullValue, aBaseEntities); if (!myErrorMsg.empty()) return; diff --git a/src/SketchSolver/SketchSolver_ConstraintMultiTranslation.cpp b/src/SketchSolver/SketchSolver_ConstraintMultiTranslation.cpp index 1a26ea810..7bbd8c18f 100644 --- a/src/SketchSolver/SketchSolver_ConstraintMultiTranslation.cpp +++ b/src/SketchSolver/SketchSolver_ConstraintMultiTranslation.cpp @@ -57,9 +57,8 @@ void SketchSolver_ConstraintMultiTranslation::process() } EntityWrapperPtr aStartPoint, aEndPoint; - bool aFullValue; std::list aBaseEntities; - getAttributes(aStartPoint, aEndPoint, aFullValue, aBaseEntities); + getAttributes(aStartPoint, aEndPoint, myIsFullValue, aBaseEntities); if (!myErrorMsg.empty()) return;