]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for sketcher
authorvsv <vitaly.smetannikov@opencascade.com>
Fri, 25 Jul 2014 15:10:18 +0000 (19:10 +0400)
committervsv <vitaly.smetannikov@opencascade.com>
Fri, 25 Jul 2014 15:10:18 +0000 (19:10 +0400)
src/PartSet/PartSet_OperationFeatureEdit.cpp
src/PartSet/PartSet_OperationSketchBase.cpp

index 3c74e6478c4b5e9129a5e459eb5875f2946492e1..f3e4b2dbe69cc415b1d8a8bc61383f2d83d4875c 100644 (file)
@@ -126,6 +126,8 @@ void PartSet_OperationFeatureEdit::mouseMoved(QMouseEvent* theEvent, Handle(V3d_
     boost::shared_ptr<SketchPlugin_Feature> aSketchFeature = 
                            boost::dynamic_pointer_cast<SketchPlugin_Feature>(feature());
     aSketchFeature->move(aDeltaX, aDeltaY);
+    static Events_ID anEvent = Events_Loop::eventByName(EVENT_OBJECT_TO_REDISPLAY);
+    ModelAPI_EventCreator::get()->sendUpdated(feature(), anEvent);
   }
   sendFeatures();
 
index 5934e46d198a112f713f7c7790e6cad444905525..c606e919d67cbf3b92d0ef39246d7e6f49c15b11 100644 (file)
@@ -53,17 +53,19 @@ std::list<FeaturePtr> PartSet_OperationSketchBase::subFeatures() const
 std::list<int> PartSet_OperationSketchBase::getSelectionModes(ObjectPtr theFeature) const
 {
   std::list<int> aModes;
-  FeaturePtr aFeature = boost::dynamic_pointer_cast<ModelAPI_Feature>(theFeature);
-  if (aFeature) {
-    if (PartSet_Tools::isConstraintFeature(aFeature->getKind())) {
-        aModes.clear();
-        aModes.push_back(AIS_DSM_Text);
-        aModes.push_back(AIS_DSM_Line);
-        return aModes;
-    }
-  }
+  //FeaturePtr aFeature = boost::dynamic_pointer_cast<ModelAPI_Feature>(theFeature);
+  //if (aFeature) {
+  //  if (PartSet_Tools::isConstraintFeature(aFeature->getKind())) {
+  //      aModes.clear();
+  //      aModes.push_back(AIS_DSM_Text);
+  //      aModes.push_back(AIS_DSM_Line);
+  //      return aModes;
+  //  }
+  //}
   aModes.push_back(AIS_Shape::SelectionMode((TopAbs_ShapeEnum)TopAbs_VERTEX));
   aModes.push_back(AIS_Shape::SelectionMode((TopAbs_ShapeEnum)TopAbs_EDGE));
+  aModes.push_back(AIS_DSM_Text);
+  aModes.push_back(AIS_DSM_Line);
   return aModes;
 }
 FeaturePtr PartSet_OperationSketchBase::createFeature(const bool theFlushMessage)