]> OCCT Git - occt.git/commitdiff
0025500: Visualization, TKOpenGl - global trihedron should not inherit transformation...
authorkgv <kgv@opencascade.com>
Fri, 21 Nov 2014 12:34:16 +0000 (15:34 +0300)
committerbugmaster <bugmaster@opencascade.com>
Fri, 21 Nov 2014 12:34:50 +0000 (15:34 +0300)
Test case for CR25500

src/OpenGl/OpenGl_Trihedron.cxx
tests/bugs/vis/bug25500 [new file with mode: 0644]

index 7e47d05fd911ee3b6d1ea5495c588e33e5c37555..b9597df29f57df366c62370fcaca568e8a89e9cf 100644 (file)
@@ -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 (file)
index 0000000..a3a5599
--- /dev/null
@@ -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