]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
enable loading resources of MESH plugings by prepending plugin name to pixMap name
authoreap <eap@opencascade.com>
Thu, 17 Apr 2008 07:45:32 +0000 (07:45 +0000)
committereap <eap@opencascade.com>
Thu, 17 Apr 2008 07:45:32 +0000 (07:45 +0000)
src/SMESH_I/SMESH_Gen_i_1.cxx

index 515de42180c5845bc4bfcaab57d4719c2682749e..3d87ad4f6d96938e36e7546dc87b8e9993774811 100644 (file)
@@ -714,6 +714,10 @@ SALOMEDS::SObject_ptr
     // Add New Hypothesis
     string aPmName = isAlgo ? "ICON_SMESH_TREE_ALGO_" : "ICON_SMESH_TREE_HYPO_";
     aPmName += theHyp->GetName();
+    // prepend plugin name to pixmap name
+    string pluginName = myHypCreatorMap[string(theHyp->GetName())]->GetModuleName();
+    if ( pluginName != "StdMeshers" )
+      aPmName = pluginName + "::" + aPmName;
     aHypSO = publish( theStudy, theHyp, aRootSO, 0, aPmName.c_str() );
   }