From: vsv Date: Fri, 25 Jul 2014 15:10:18 +0000 (+0400) Subject: Fix for sketcher X-Git-Tag: V_0.4.4~144 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dd71e2f5032a7680961b9ee447c44db1e7a90663;p=modules%2Fshaper.git Fix for sketcher --- diff --git a/src/PartSet/PartSet_OperationFeatureEdit.cpp b/src/PartSet/PartSet_OperationFeatureEdit.cpp index 3c74e6478..f3e4b2dbe 100644 --- a/src/PartSet/PartSet_OperationFeatureEdit.cpp +++ b/src/PartSet/PartSet_OperationFeatureEdit.cpp @@ -126,6 +126,8 @@ void PartSet_OperationFeatureEdit::mouseMoved(QMouseEvent* theEvent, Handle(V3d_ boost::shared_ptr aSketchFeature = boost::dynamic_pointer_cast(feature()); aSketchFeature->move(aDeltaX, aDeltaY); + static Events_ID anEvent = Events_Loop::eventByName(EVENT_OBJECT_TO_REDISPLAY); + ModelAPI_EventCreator::get()->sendUpdated(feature(), anEvent); } sendFeatures(); diff --git a/src/PartSet/PartSet_OperationSketchBase.cpp b/src/PartSet/PartSet_OperationSketchBase.cpp index 5934e46d1..c606e919d 100644 --- a/src/PartSet/PartSet_OperationSketchBase.cpp +++ b/src/PartSet/PartSet_OperationSketchBase.cpp @@ -53,17 +53,19 @@ std::list PartSet_OperationSketchBase::subFeatures() const std::list PartSet_OperationSketchBase::getSelectionModes(ObjectPtr theFeature) const { std::list aModes; - FeaturePtr aFeature = boost::dynamic_pointer_cast(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(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)