]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
material aspect is changed to plastic
authorasl <asl@opencascade.com>
Thu, 26 Dec 2013 08:32:46 +0000 (08:32 +0000)
committerasl <asl@opencascade.com>
Thu, 26 Dec 2013 08:32:46 +0000 (08:32 +0000)
src/HYDROGUI/HYDROGUI_Shape.cxx

index ca88fc01f75ba050ebd222463b41c5630578fd48..862c9e1857ed19f35f81fb363ef24e7df0434891 100644 (file)
@@ -620,9 +620,9 @@ void HYDROGUI_Shape::buildShape()
       Handle(Prs3d_ShadingAspect) aShadingAspect = anAttributes->ShadingAspect();
       if ( !aShadingAspect.IsNull() )
       {
-        Graphic3d_MaterialAspect aMatAspect;
-        aMatAspect.SetAmbient( 1 );
-        aMatAspect.SetDiffuse( 0 );
+        Graphic3d_MaterialAspect aMatAspect( Graphic3d_NOM_PLASTIC );
+        //aMatAspect.SetAmbient( 1 );
+        //aMatAspect.SetDiffuse( 0 );
 
         aShadingAspect->Aspect()->SetFrontMaterial( aMatAspect );
         aShadingAspect->Aspect()->SetBackMaterial( aMatAspect );