0028263: Coding Rules - clean up definition of the class Graphic3d_MaterialAspect
[occt.git] / src / AIS / AIS_Shape.cxx
index 484a33c..f0a4dd6 100644 (file)
@@ -642,7 +642,7 @@ void AIS_Shape::UnsetColor()
     if (IsTransparent())
     {
       Standard_Real aTransp = myDrawer->ShadingAspect()->Transparency (myCurrentFacingModel);
-      mat.SetTransparency (aTransp);
+      mat.SetTransparency (Standard_ShortReal(aTransp));
     }
     myDrawer->ShadingAspect()->SetMaterial (mat ,myCurrentFacingModel);
   }