if (myDrawer->DimensionAspect()->IsTextShaded())
{
// Setting text shading and color parameters
+ if (!myDrawer->HasOwnShadingAspect())
+ {
+ myDrawer->SetShadingAspect (new Prs3d_ShadingAspect());
+ }
+
Graphic3d_MaterialAspect aShadeMat (Graphic3d_NOM_DEFAULT);
aShadeMat.SetReflectionModeOff (Graphic3d_TOR_AMBIENT);
aShadeMat.SetReflectionModeOff (Graphic3d_TOR_DIFFUSE);
}
else
{
- // setting color for text
+ // Setting color for text
+ if (!myDrawer->HasOwnFreeBoundaryAspect())
+ {
+ myDrawer->SetFreeBoundaryAspect (new Prs3d_LineAspect (aColor, Aspect_TOL_SOLID, 1.0));
+ }
+
myDrawer->FreeBoundaryAspect()->Aspect()->SetColor (aColor);
+
// drawing text
StdPrs_WFShape::Add (thePresentation, aTextShape, myDrawer);
}