mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 18:30:35 +05:00
enable loading resources of MESH plugings by prepending plugin name to pixMap name
This commit is contained in:
parent
f2bbde8d18
commit
22b9a6bf30
@ -714,6 +714,10 @@ SALOMEDS::SObject_ptr
|
|||||||
// Add New Hypothesis
|
// Add New Hypothesis
|
||||||
string aPmName = isAlgo ? "ICON_SMESH_TREE_ALGO_" : "ICON_SMESH_TREE_HYPO_";
|
string aPmName = isAlgo ? "ICON_SMESH_TREE_ALGO_" : "ICON_SMESH_TREE_HYPO_";
|
||||||
aPmName += theHyp->GetName();
|
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() );
|
aHypSO = publish( theStudy, theHyp, aRootSO, 0, aPmName.c_str() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user