From: Pawel Date: Wed, 18 Jul 2012 10:53:47 +0000 (+0200) Subject: 0023325: Always getting the transparency of the back face X-Git-Tag: V6_5_4_beta1~101 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=e25709170a4dca7c8bb109becd581bd9badb3676;p=occt-copy.git 0023325: Always getting the transparency of the back face Added the 'breaks' in the affected 'switch' statement. --- 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; }