]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2052: Modification of parameters don't work (sketch, extrusion)
authorazv <azv@opencascade.com>
Mon, 3 Apr 2017 14:46:06 +0000 (17:46 +0300)
committerazv <azv@opencascade.com>
Mon, 3 Apr 2017 14:46:38 +0000 (17:46 +0300)
Fix problem with sketch update

src/Model/Model_Session.cpp
src/SketchSolver/SketchSolver_ConstraintMultiRotation.cpp
src/SketchSolver/SketchSolver_ConstraintMultiTranslation.cpp

index c73516a43069ef9382894fe3eb1456a588310bb1..98a1340f9c4b41eb0ed3a87a6da69aea163445f7 100644 (file)
@@ -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<Events_Listener*>(thePlugin);
   if (aListener) {
index 3288c9830480d228ef7b87c0e68cea055707cd3a..2a91c6285cf281479c864bea6bd7e0406e407923 100644 (file)
@@ -58,9 +58,8 @@ void SketchSolver_ConstraintMultiRotation::process()
 
   EntityWrapperPtr anAngle;
   EntityWrapperPtr aRotationCenter;
-  bool isFullValue;
   std::list<EntityWrapperPtr> aBaseEntities;
-  getAttributes(aRotationCenter, anAngle, isFullValue, aBaseEntities);
+  getAttributes(aRotationCenter, anAngle, myIsFullValue, aBaseEntities);
   if (!myErrorMsg.empty())
     return;
 
index 1a26ea810177eb250bc8b91a9a42304b65c509e8..7bbd8c18f382dd972a7972da43cad7adc17a0271 100644 (file)
@@ -57,9 +57,8 @@ void SketchSolver_ConstraintMultiTranslation::process()
   }
 
   EntityWrapperPtr aStartPoint, aEndPoint;
-  bool aFullValue;
   std::list<EntityWrapperPtr> aBaseEntities;
-  getAttributes(aStartPoint, aEndPoint, aFullValue, aBaseEntities);
+  getAttributes(aStartPoint, aEndPoint, myIsFullValue, aBaseEntities);
   if (!myErrorMsg.empty())
     return;