]> 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)
committeromy <omy@opencascade.com>
Mon, 31 Aug 2015 09:46:44 +0000 (12:46 +0300)
src/AIS/AIS_Dimension.cxx

index feca35f0a3fe2b970341050f40c82e9544250008..bb3b3dadc0271c2dd50b449d3518fc08d45c0f75 100755 (executable)
@@ -409,6 +409,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