Salome HOME
Issue #3123: Provide chain of create Angle constraint operations
[modules/shaper.git] / src / PartSet / PartSet_Module.cpp
index febeae273ef5db9be8d20adbc0955dfba46b164a..5b50689714efd32cde8bd4584cae4d8411858834 100644 (file)
@@ -253,8 +253,8 @@ PartSet_Module::PartSet_Module(ModuleBase_IWorkshop* theWshop)
     "Add parameter in parameters manager dialog",
     Config_Prop::Shortcut, "Ctrl+A");
 
-  Config_PropManager::registerProp("Windows", "use_hide_faces_panel", "Use HideFaces panel in operations",
-    Config_Prop::Boolean, "false");
+  Config_PropManager::registerProp("Windows", "use_hide_faces_panel",
+    "Use HideFaces panel in operations", Config_Prop::Boolean, "false");
 }
 
 //******************************************************
@@ -553,7 +553,7 @@ bool PartSet_Module::canRedo() const
 bool PartSet_Module::canApplyAction(const ObjectPtr& theObject, const QString& theActionId) const
 {
   bool aValid = true;
-  if (theActionId == "MOVE_CMD") {
+  if (theActionId == "MOVE_CMD" || theActionId == "MOVE_SPLIT_CMD") {
     FeaturePtr aFeature = ModelAPI_Feature::feature(theObject);
     if (aFeature) {
       ResultPtr aResult = ModuleBase_Tools::firstResult(aFeature);
@@ -1366,7 +1366,7 @@ double getResultTransparency(const ResultPtr& theResult)
 void PartSet_Module::customizePresentation(const ObjectPtr& theObject,
                                            const AISObjectPtr& thePrs) const
 {
-  if (mySketchMgr->isSketchStarted()) {
+  if (mySketchMgr->isObjectOfSketch(theObject)) {
     mySketchMgr->customizeSketchPresentation(theObject, thePrs);
   }
   else {