1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

0025500: Visualization, TKOpenGl - global trihedron should not inherit transformation from last object

Test case for CR25500
This commit is contained in:
kgv 2014-11-21 15:34:16 +03:00 committed by bugmaster
parent a791eb69f4
commit a86ce5a64a
2 changed files with 26 additions and 2 deletions

View 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)
{

25
tests/bugs/vis/bug25500 Normal file
View File

@ -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