mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 17:30:35 +05:00
Fix for the bug 21194: EDF SMESH: Cannot display a group by clicking on the "eye" of the OB
This commit is contained in:
parent
e02bf0244b
commit
242f34ddc8
@ -104,7 +104,7 @@ SMESH_Actor* SMESH_Actor::New(TVisualObjPtr theVisualObj,
|
|||||||
int theIsClear)
|
int theIsClear)
|
||||||
{
|
{
|
||||||
SMESH_ActorDef* anActor = NULL;
|
SMESH_ActorDef* anActor = NULL;
|
||||||
if(theVisualObj->GetNbEntities(SMDSAbs_Node) > 0 ) {
|
if(theVisualObj->IsValid() ) {
|
||||||
anActor = SMESH_ActorDef::New();
|
anActor = SMESH_ActorDef::New();
|
||||||
if(!anActor->Init(theVisualObj,theEntry,theName,theIsClear)){
|
if(!anActor->Init(theVisualObj,theEntry,theName,theIsClear)){
|
||||||
anActor->Delete();
|
anActor->Delete();
|
||||||
|
@ -611,7 +611,7 @@ namespace SMESH
|
|||||||
}
|
}
|
||||||
|
|
||||||
SMESH::SMESH_GroupBase_var aGroup = SMESH::SMESH_GroupBase::_narrow( SMESH::SObjectToObject( aSObj ));
|
SMESH::SMESH_GroupBase_var aGroup = SMESH::SMESH_GroupBase::_narrow( SMESH::SObjectToObject( aSObj ));
|
||||||
if(!CORBA::is_nil(aGroup))
|
if(!CORBA::is_nil(aGroup) && anActor)
|
||||||
{
|
{
|
||||||
SALOMEDS::Color aColor = aGroup->GetColor();
|
SALOMEDS::Color aColor = aGroup->GetColor();
|
||||||
if( !( aColor.R > 0 || aColor.G > 0 || aColor.B > 0 ) )
|
if( !( aColor.R > 0 || aColor.G > 0 || aColor.B > 0 ) )
|
||||||
|
Loading…
Reference in New Issue
Block a user