]> OCCT Git - occt-copy.git/commitdiff
0024725: AIS_TexturedShape - flag switching texture modulation mode does not work
authorapl <apl@opencascade.com>
Thu, 20 Mar 2014 09:46:40 +0000 (13:46 +0400)
committerabv <abv@opencascade.com>
Fri, 4 Apr 2014 09:41:39 +0000 (13:41 +0400)
Missing code restored

src/AIS/AIS_TexturedShape.cxx

index 8b3986172bb59169313175b48616a74eb9d3fc91..27b8fac864b589a475dd54058b69c1d9088300ea 100644 (file)
@@ -225,6 +225,11 @@ void AIS_TexturedShape::UpdateAttributes()
     return;
   }
 
+  if (myModulate)
+    myTexture->EnableModulate();
+  else
+    myTexture->DisableModulate();
+
   if (myToShowTriangles)
     myAspect->SetEdgeOn();
   else