mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-06 23:00:34 +05:00
Bug IPAL18040 - 4.x: color of the displayed edge group doesn't correspond to set one.
This commit is contained in:
parent
c7ca9e31df
commit
e9c972fa1f
@ -541,7 +541,14 @@ using namespace std;
|
|||||||
|
|
||||||
_PTR(SObject) aGroupSObject = SMESH::FindSObject(aGroupObject);
|
_PTR(SObject) aGroupSObject = SMESH::FindSObject(aGroupObject);
|
||||||
if(SMESH_Actor *anActor = SMESH::FindActorByEntry(aGroupSObject->GetID().c_str()))
|
if(SMESH_Actor *anActor = SMESH::FindActorByEntry(aGroupSObject->GetID().c_str()))
|
||||||
anActor->SetSufaceColor( aColor.R, aColor.G, aColor.B );
|
{
|
||||||
|
if( aGroupObject->GetType() == SMESH::NODE )
|
||||||
|
anActor->SetNodeColor( aColor.R, aColor.G, aColor.B );
|
||||||
|
else if( aGroupObject->GetType() == SMESH::EDGE )
|
||||||
|
anActor->SetEdgeColor( aColor.R, aColor.G, aColor.B );
|
||||||
|
else
|
||||||
|
anActor->SetSufaceColor( aColor.R, aColor.G, aColor.B );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SMESH::RepaintCurrentView();
|
SMESH::RepaintCurrentView();
|
||||||
|
@ -587,7 +587,12 @@ namespace SMESH {
|
|||||||
aColor.B = (float)b / 255.0;
|
aColor.B = (float)b / 255.0;
|
||||||
aGroup->SetColor( aColor );
|
aGroup->SetColor( aColor );
|
||||||
}
|
}
|
||||||
anActor->SetSufaceColor( aColor.R, aColor.G, aColor.B );
|
if( aGroup->GetType() == SMESH::NODE )
|
||||||
|
anActor->SetNodeColor( aColor.R, aColor.G, aColor.B );
|
||||||
|
else if( aGroup->GetType() == SMESH::EDGE )
|
||||||
|
anActor->SetEdgeColor( aColor.R, aColor.G, aColor.B );
|
||||||
|
else
|
||||||
|
anActor->SetSufaceColor( aColor.R, aColor.G, aColor.B );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user