]> OCCT Git - occt-copy.git/commitdiff
0026433: AIS_Dimension may attempt to modify the state of default Drawer shading...
authorduv <duv@opencascade.com>
Tue, 14 Jul 2015 14:42:27 +0000 (17:42 +0300)
committerduv <duv@opencascade.com>
Thu, 16 Jul 2015 14:30:33 +0000 (17:30 +0300)
src/AIS/AIS_Dimension.cxx

index a09e1a1da27cf5cae4b1fd30c3bacfe2d4967ee6..84b0637936cf5c3de0343ce020bed3876e7d6e7e 100755 (executable)
@@ -410,6 +410,11 @@ void AIS_Dimension::DrawText (const Handle(Prs3d_Presentation)& thePresentation,
                               const TCollection_ExtendedString& theText,
                               const Standard_Integer theLabelPosition)
 {
+  if (!myDrawer->HasOwnShadingAspect())
+  {
+      myDrawer->SetShadingAspect (new Prs3d_ShadingAspect());
+  }
+
   if (myDrawer->DimensionAspect()->IsText3d())
   {
     // getting font parameters