// override transparency
myDrawer->ShadingAspect()->SetTransparency (theValue, myCurrentFacingModel);
- myTransparency = theValue;
+ myDrawer->SetTransparency ((Standard_ShortReal )theValue);
updatePresentation();
}
//=======================================================================
void AIS_Triangulation::UnsetTransparency()
{
- myTransparency = 0.0;
+ myDrawer->SetTransparency (0.0f);
if (!myDrawer->HasOwnShadingAspect())
{
return;