mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 10:08:34 +05:00
0020788: EDF 1339 SMESH : Crash after enabling "Auto Color" feature in attached MED file
This commit is contained in:
parent
8a6ef93bb1
commit
736b66759f
@ -684,14 +684,15 @@
|
|||||||
aReservedColors.append( aColor );
|
aReservedColors.append( aColor );
|
||||||
|
|
||||||
_PTR(SObject) aGroupSObject = SMESH::FindSObject(aGroupObject);
|
_PTR(SObject) aGroupSObject = SMESH::FindSObject(aGroupObject);
|
||||||
if(SMESH_Actor *anActor = SMESH::FindActorByEntry(aGroupSObject->GetID().c_str()))
|
if (aGroupSObject) {
|
||||||
{
|
if(SMESH_Actor *anActor = SMESH::FindActorByEntry(aGroupSObject->GetID().c_str())) {
|
||||||
if( aGroupObject->GetType() == SMESH::NODE )
|
if( aGroupObject->GetType() == SMESH::NODE )
|
||||||
anActor->SetNodeColor( aColor.R, aColor.G, aColor.B );
|
anActor->SetNodeColor( aColor.R, aColor.G, aColor.B );
|
||||||
else if( aGroupObject->GetType() == SMESH::EDGE )
|
else if( aGroupObject->GetType() == SMESH::EDGE )
|
||||||
anActor->SetEdgeColor( aColor.R, aColor.G, aColor.B );
|
anActor->SetEdgeColor( aColor.R, aColor.G, aColor.B );
|
||||||
else
|
else
|
||||||
anActor->SetSufaceColor( aColor.R, aColor.G, aColor.B );
|
anActor->SetSufaceColor( aColor.R, aColor.G, aColor.B );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user