1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0027624: ViewerTest - vdrawtext command ignores text display options

vdrawtext command was corrected to set the specified text display type
regardless of other options.
This commit is contained in:
san
2016-06-20 19:17:56 +03:00
committed by bugmaster
parent 5bbe7380bd
commit 284c923864
2 changed files with 16 additions and 2 deletions

View File

@@ -2842,10 +2842,11 @@ static int VDrawText (Draw_Interpretor& theDI,
aTextPrs->SetOrientation3D (gp_Ax2 (aPos, aNormal, aDirection));
}
aTextPrs->SetDisplayType (aDisplayType);
if (aTrsfPersFlags != Graphic3d_TMF_None)
{
aTextPrs->SetTransformPersistence (aTrsfPersFlags, aTPPosition);
aTextPrs->SetDisplayType (aDisplayType);
aTextPrs->SetZLayer(Graphic3d_ZLayerId_TopOSD);
if (aTextPrs->Position().Z() != 0)
{
@@ -2855,7 +2856,6 @@ static int VDrawText (Draw_Interpretor& theDI,
else if (aTrsfPersFlags != aTextPrs->TransformPersistence().Flags)
{
aTextPrs->SetTransformPersistence (aTrsfPersFlags);
aTextPrs->SetDisplayType (Aspect_TODT_NORMAL);
}
ViewerTest::Display (aName, aTextPrs, Standard_False);
return 0;