]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
It replaces direct names of construction and partset features to the specific kind.
authornds <natalia.donis@opencascade.com>
Wed, 4 Jun 2014 11:10:41 +0000 (15:10 +0400)
committernds <natalia.donis@opencascade.com>
Wed, 4 Jun 2014 11:10:41 +0000 (15:10 +0400)
src/XGUI/XGUI_ContextMenuMgr.cpp
src/XGUI/XGUI_Workshop.cpp

index 86a5d03e806877634e0536aca1f82c85d6a2782e..32c961026c0723a2e74c9d24244f313d66e97416 100644 (file)
@@ -96,7 +96,7 @@ QMenu* XGUI_ContextMenuMgr::objectBrowserMenu() const
     FeaturePtr aFeature = aFeatures.first();
     //Process Feature
     if (aFeature) {
-      if (aFeature->getKind() == PARTSET_PART_KIND) {
+      if (aFeature->getKind() == "Part") {
         ObjectPtr aObject = boost::dynamic_pointer_cast<ModelAPI_Object>(aFeature);
         DocumentPtr aFeaDoc = aObject->featureRef()->data()->docRef("PartDocument")->value();
         if (aMgr->currentDocument() == aFeaDoc)
index 8dec5d9007195e321306ffb9165ef5840e4ab731..dfe77c6f82b30f1fe13b7c77b18b15ceece383dd 100644 (file)
@@ -228,7 +228,7 @@ void XGUI_Workshop::processEvent(const Events_Message* theMessage)
     bool aHasPart = false;
     for (aIt = aFeatures.begin(); aIt != aFeatures.end(); ++aIt) {
       FeaturePtr aFeature = (*aIt);
-      if (aFeature->getKind() == PARTSET_PART_KIND) {
+      if (aFeature->getKind() == "Part") {
         aHasPart = true;
         break;
       }