From 9a31c0106462f21cf7dfa631f39e3b8886969f51 Mon Sep 17 00:00:00 2001 From: mzernova Date: Tue, 16 Jun 2020 14:24:26 +0300 Subject: [PATCH] 0030922: Visualization - OpenGl_Text wrong local transformation if text has not own attach point bugs/vis/bug30922: test case added --- tests/bugs/vis/bug30922 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/bugs/vis/bug30922 diff --git a/tests/bugs/vis/bug30922 b/tests/bugs/vis/bug30922 new file mode 100644 index 0000000000..1208fc0d98 --- /dev/null +++ b/tests/bugs/vis/bug30922 @@ -0,0 +1,16 @@ +puts "=============" +puts "0030922: Visualization - OpenGl_Text wrong local transformation if text has not own attach point" +puts "=============" + +vfont add [locate_data_file DejaVuSans.ttf] SansFont + +vinit View1 +vtrihedron trihedr + +vdrawtext Text "First line\nSecond line" -pos 10 0 0 -color red -plane 1 0 0 0 1 0 -flipping -halign center -valign top -height 50 -font SansFont +vright +vlocation Text -translate 0 10 150 + +if {[vreadpixel 106 232 rgb name] == "RED"} { puts "ERROR: the text is not moved" } + +vdump $imagedir/${casename}.png