From 38dd97c8f7a3605ec6c362c3aefdefa3ee2675be Mon Sep 17 00:00:00 2001 From: azv Date: Mon, 3 Apr 2017 17:46:06 +0300 Subject: [PATCH] Issue #2052: Modification of parameters don't work (sketch, extrusion) Fix problem with sketch update --- src/Model/Model_Session.cpp | 3 +-- src/SketchSolver/SketchSolver_ConstraintMultiRotation.cpp | 3 +-- src/SketchSolver/SketchSolver_ConstraintMultiTranslation.cpp | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) 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; -- 2.39.2