]> OCCT Git - occt-copy.git/commitdiff
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 b2d8abe3a623b7b76bfc82c6c3646143574c9316..3701f8e186e801505b216d81a4bb452b6d49a28e 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;
 }