0023325: Always getting the transparency of the back face
authorPawel <pawel-kowalski@wp.pl>
Wed, 18 Jul 2012 10:53:47 +0000 (12:53 +0200)
committerPawel Kowalski <pawel-kowalski@wp.pl>
Fri, 27 Jul 2012 11:23:23 +0000 (15:23 +0400)
Added the 'breaks' in the affected 'switch' statement.

src/Prs3d/Prs3d_ShadingAspect.cxx

index b2d8abe..3701f8e 100755 (executable)
@@ -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;
 }