From a86ce5a64af961084d6c3b8783e88ea236581c3b Mon Sep 17 00:00:00 2001 From: kgv Date: Fri, 21 Nov 2014 15:34:16 +0300 Subject: [PATCH] 0025500: Visualization, TKOpenGl - global trihedron should not inherit transformation from last object Test case for CR25500 --- src/OpenGl/OpenGl_Trihedron.cxx | 3 +-- tests/bugs/vis/bug25500 | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 tests/bugs/vis/bug25500 diff --git a/src/OpenGl/OpenGl_Trihedron.cxx b/src/OpenGl/OpenGl_Trihedron.cxx index 7e47d05fd9..b9597df29f 100644 --- a/src/OpenGl/OpenGl_Trihedron.cxx +++ b/src/OpenGl/OpenGl_Trihedron.cxx @@ -606,9 +606,8 @@ void OpenGl_Trihedron::Render (const Handle(OpenGl_Workspace)& theWorkspace) con } const Handle(OpenGl_Texture) aPrevTexture = theWorkspace->DisableTexture(); - - /* affichage du Triedre Non Zoomable */ theWorkspace->ActiveView()->EndTransformPersistence (theWorkspace->GetGlContext()); + theWorkspace->GetGlContext()->ApplyModelViewMatrix(); if (myIsWireframe) { diff --git a/tests/bugs/vis/bug25500 b/tests/bugs/vis/bug25500 new file mode 100644 index 0000000000..a3a55993df --- /dev/null +++ b/tests/bugs/vis/bug25500 @@ -0,0 +1,25 @@ +puts "========" +puts "OCC25500" +puts "========" +puts "" +################################################################################################### +# Visualization, TKOpenGl - global trihedron should not inherit transformation from last object +################################################################################################### + +box b 1 2 3 + +vinit View1 +vclear +vaxo +vdisplay b +vfit + +vzbufftrihedron + +vsetlocation b 0.2 0 0 +vcaps -ffp 0 +vrepaint + +checkcolor 60 379 1 0.058823529630899429 0.058823529630899429 + +set only_screen 1 -- 2.39.5