From: kgv Date: Fri, 21 Nov 2014 12:34:16 +0000 (+0300) Subject: 0025500: Visualization, TKOpenGl - global trihedron should not inherit transformation... X-Git-Tag: V6_9_0_beta~282 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=a86ce5a64af961084d6c3b8783e88ea236581c3b;p=occt.git 0025500: Visualization, TKOpenGl - global trihedron should not inherit transformation from last object Test case for CR25500 --- 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