1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-05 18:16:23 +03:00

0025466: Visualization - Impossible to change the display mode when a local context is opened

Remove irrelevant check from method AIS_InteractiveContext::SetDisplayMode().

Test case for issue CR25466
This commit is contained in:
kgv 2015-01-15 15:25:52 +03:00 committed by bugmaster
parent 63d907e787
commit cd0a63dd7b
2 changed files with 25 additions and 5 deletions

View File

@ -1461,11 +1461,6 @@ void AIS_InteractiveContext::SetDisplayMode (const Handle(AIS_InteractiveObject)
theIObj->SetContext(this);
}
if (HasOpenedContext())
{
return;
}
if (!myObjects.IsBound (theIObj))
{
theIObj->SetDisplayMode (theMode);

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

@ -0,0 +1,25 @@
puts "============"
puts "CR25466"
puts "============"
puts ""
#######################################################################
# Visualization - Impossible to change the display mode when a local context is opened
#######################################################################
box b1 0 0 0 1 2 3
box b2 3 0 0 2 3 1
vinit View1
vclear
vaxo
vsetdispmode 0
vdisplay b1 b2
vfit
vselmode b1 4 1
vsetdispmode b1 1
checkcolor 100 100 0.78 0.55 0.09
set only_screen 1