]> OCCT Git - occt-copy.git/commitdiff
Add changes from CR26433.
authorisk <isk@opencascade.com>
Thu, 29 Oct 2015 11:51:14 +0000 (14:51 +0300)
committerisk <isk@opencascade.com>
Thu, 29 Oct 2015 11:51:14 +0000 (14:51 +0300)
src/AIS/AIS_Dimension.cxx

index e235d142b9475d44be2f6b26cdd25dd05f840cd1..3f9fa3d91e9f8ede88e0ae639e02469aeeab8d93 100755 (executable)
@@ -502,6 +502,11 @@ void AIS_Dimension::DrawText (const Handle(Prs3d_Presentation)& thePresentation,
     // draw text
     if (myDrawer->DimensionAspect()->IsTextShaded())
     {
+      if (!myDrawer->HasOwnShadingAspect())
+      {
+        myDrawer->SetShadingAspect (new Prs3d_ShadingAspect());
+      }
+
       // Setting text shading and color parameters
       Graphic3d_MaterialAspect aShadeMat (Graphic3d_NOM_DEFAULT);
       aShadeMat.SetReflectionModeOff (Graphic3d_TOR_AMBIENT);