From e25709170a4dca7c8bb109becd581bd9badb3676 Mon Sep 17 00:00:00 2001 From: Pawel Date: Wed, 18 Jul 2012 12:53:47 +0200 Subject: [PATCH] 0023325: Always getting the transparency of the back face Added the 'breaks' in the affected 'switch' statement. --- src/Prs3d/Prs3d_ShadingAspect.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Prs3d/Prs3d_ShadingAspect.cxx b/src/Prs3d/Prs3d_ShadingAspect.cxx index b2d8abe3a6..3701f8e186 100755 --- a/src/Prs3d/Prs3d_ShadingAspect.cxx +++ b/src/Prs3d/Prs3d_ShadingAspect.cxx @@ -220,8 +220,10 @@ Standard_Real aValue(0.); case Aspect_TOFM_BOTH_SIDE: case Aspect_TOFM_FRONT_SIDE: aValue = myAspect->FrontMaterial().Transparency(); + break; case Aspect_TOFM_BACK_SIDE: aValue = myAspect->BackMaterial().Transparency(); + break; } return aValue; }