mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 18:30:35 +05:00
IPAL20918 Color of Group of Nodes or Edges is not changed when Edit Group
This commit is contained in:
parent
c24e100632
commit
f94864f0a5
@ -816,8 +816,15 @@ bool SMESHGUI_GroupDlg::onApply()
|
|||||||
myGroup->SetColor(aColor);
|
myGroup->SetColor(aColor);
|
||||||
|
|
||||||
_PTR(SObject) aMeshGroupSO = SMESH::FindSObject(myGroup);
|
_PTR(SObject) aMeshGroupSO = SMESH::FindSObject(myGroup);
|
||||||
if (SMESH_Actor *anActor = SMESH::FindActorByEntry(aMeshGroupSO->GetID().c_str()))
|
|
||||||
anActor->SetSufaceColor( aColor.R, aColor.G, aColor.B );
|
if (SMESH_Actor *anActor = SMESH::FindActorByEntry(aMeshGroupSO->GetID().c_str())) {
|
||||||
|
switch ( myTypeId ) {
|
||||||
|
case 0: anActor->SetNodeColor( aColor.R, aColor.G, aColor.B ); break;
|
||||||
|
case 1: anActor->SetEdgeColor( aColor.R, aColor.G, aColor.B ); break;
|
||||||
|
case 2:
|
||||||
|
case 3: anActor->SetSufaceColor( aColor.R, aColor.G, aColor.B ); break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
QValueList<int> aAddList;
|
QValueList<int> aAddList;
|
||||||
QValueList<int>::iterator anIt;
|
QValueList<int>::iterator anIt;
|
||||||
@ -941,8 +948,14 @@ bool SMESHGUI_GroupDlg::onApply()
|
|||||||
myGroupOnGeom->SetColor(aColor);
|
myGroupOnGeom->SetColor(aColor);
|
||||||
|
|
||||||
_PTR(SObject) aMeshGroupSO = SMESH::FindSObject(myGroupOnGeom);
|
_PTR(SObject) aMeshGroupSO = SMESH::FindSObject(myGroupOnGeom);
|
||||||
if (SMESH_Actor *anActor = SMESH::FindActorByEntry(aMeshGroupSO->GetID().c_str()))
|
if (SMESH_Actor *anActor = SMESH::FindActorByEntry(aMeshGroupSO->GetID().c_str())) {
|
||||||
anActor->SetSufaceColor( aColor.R, aColor.G, aColor.B );
|
switch ( myTypeId ) {
|
||||||
|
case 0: anActor->SetNodeColor( aColor.R, aColor.G, aColor.B ); break;
|
||||||
|
case 1: anActor->SetEdgeColor( aColor.R, aColor.G, aColor.B ); break;
|
||||||
|
case 2:
|
||||||
|
case 3: anActor->SetSufaceColor( aColor.R, aColor.G, aColor.B ); break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mySMESHGUI->updateObjBrowser(true);
|
mySMESHGUI->updateObjBrowser(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user