void PartSet_Module::launchOperation(const QString& theCmdId)
{
storeConstraintsState(theCmdId.toStdString());
+ updateConstraintsState(theCmdId.toStdString());
+
ModuleBase_IModule::launchOperation(theCmdId);
}
mySketchMgr->showConstraintStates();
myHasConstraintShown = aShownStates;
}
+}
+
+void PartSet_Module::updateConstraintsState(const std::string& theFeatureKind)
+{
if (PartSet_SketcherMgr::constraintsIdList().contains(theFeatureKind.c_str())) {
// Show constraints if a constraint was anOperation
mySketchMgr->updateBySketchParameters(PartSet_Tools::Geometrical, true);
/// \param theFeatureKindId a feature kind
void storeConstraintsState(const std::string& theFeatureKindId);
+ /// If the feature kind is a geometrical or dimensional constraint, set visible state for
+ /// all types of constraints
+ /// \param theFeatureKindId a feature kind
+ void updateConstraintsState(const std::string& theFeatureKind);
+
/// Register validators for this module
virtual void registerValidators();