mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-10 10:03:07 +05:00
rnc: small bug fix
This commit is contained in:
parent
bb8729db00
commit
677c061c6e
@ -727,14 +727,7 @@ void GEOM_Displayer::Update( SALOME_OCCPrs* prs )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( HasTexture() )
|
|
||||||
{
|
|
||||||
AISShape->SetTextureFileName(TCollection_AsciiString(myTexture.c_str()));
|
|
||||||
AISShape->SetTextureMapOn();
|
|
||||||
AISShape->DisableTextureModulate();
|
|
||||||
AISShape->SetDisplayMode(3);
|
|
||||||
// AISShape->SetDisplayMode( (Standard_Integer) StdSelect_DM_HLR );
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ( onlyVertex )
|
if ( onlyVertex )
|
||||||
@ -822,6 +815,14 @@ void GEOM_Displayer::Update( SALOME_OCCPrs* prs )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( HasTexture() )
|
||||||
|
{
|
||||||
|
AISShape->SetTextureFileName(TCollection_AsciiString(myTexture.c_str()));
|
||||||
|
AISShape->SetTextureMapOn();
|
||||||
|
AISShape->DisableTextureModulate();
|
||||||
|
AISShape->SetDisplayMode(3);
|
||||||
|
}
|
||||||
|
|
||||||
if ( HasWidth() )
|
if ( HasWidth() )
|
||||||
AISShape->SetWidth( GetWidth() );
|
AISShape->SetWidth( GetWidth() );
|
||||||
|
|
||||||
@ -921,7 +922,6 @@ void GEOM_Displayer::Update( SALOME_OCCPrs* prs )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// AISShape->SetName(???); ??? necessary to set name ???
|
// AISShape->SetName(???); ??? necessary to set name ???
|
||||||
// AISShape->SetDisplayMode(3);
|
|
||||||
occPrs->AddObject( AISShape );
|
occPrs->AddObject( AISShape );
|
||||||
|
|
||||||
// In accordance with ToActivate() value object will be activated/deactivated
|
// In accordance with ToActivate() value object will be activated/deactivated
|
||||||
|
Loading…
Reference in New Issue
Block a user