]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
#1624 Translation/Rotation/Mirror geometrical constraint are always visible
authornds <nds@opencascade.com>
Mon, 11 Jul 2016 06:40:21 +0000 (09:40 +0300)
committernds <nds@opencascade.com>
Mon, 11 Jul 2016 06:40:21 +0000 (09:40 +0300)
src/PartSet/PartSet_Module.cpp
src/PartSet/PartSet_SketcherMgr.cpp

index f357f254162cccbe0d87c71a30b9736396d081b6..2473454c7a8c13e1ef7378572f7d1f432aff4948 100755 (executable)
@@ -863,7 +863,8 @@ void PartSet_Module::storeConstraintsState(const std::string& theFeatureKind)
 
 void PartSet_Module::updateConstraintsState(const std::string& theFeatureKind)
 {
-  if (PartSet_SketcherMgr::constraintsIdList().contains(theFeatureKind.c_str())) {
+  if (PartSet_SketcherMgr::constraintsIdList().contains(theFeatureKind.c_str()) ||
+      PartSet_SketcherMgr::replicationsIdList().contains(theFeatureKind.c_str())) {
     // Show constraints if a constraint was anOperation
     mySketchMgr->updateBySketchParameters(PartSet_Tools::Geometrical, true);
     mySketchMgr->updateBySketchParameters(PartSet_Tools::Dimensional, true);
index 0ae8ae3e5ec531b11dadea04a5ecb6340f0c2655..c6a7a18842f48ad2e05757a781345f844bead4f4 100755 (executable)
@@ -1233,9 +1233,11 @@ bool PartSet_SketcherMgr::canDisplayConstraint(const FeaturePtr& theFeature,
   bool aSwitchedOn = true;
 
   const QStringList& aConstrIds = constraintsIdList();
+  const QStringList& aReplicationIds = replicationsIdList();
 
   std::string aKind = theFeature->getKind();
-  if (aConstrIds.contains(QString(aKind.c_str()))) {
+  if (aConstrIds.contains(aKind.c_str()) ||
+      aReplicationIds.contains(aKind.c_str())) {
     bool isTypedConstraint = false;
 
     switch (theState) {