1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0026596: Visualization - hidden twice times structure should not be selectable

Activated selection mode for the object that was displayed previously is now added to global status;
Test case for issue #26596
This commit is contained in:
vpa
2015-08-25 12:41:56 +03:00
committed by ski
parent ac84fcf602
commit 0824e32eb1
2 changed files with 33 additions and 0 deletions

View File

@@ -534,6 +534,8 @@ void AIS_InteractiveContext::Display (const Handle(AIS_InteractiveObject)& theIO
}
if (!mgrSelector->IsActivated (theIObj, theSelectionMode))
{
if (!aStatus->IsSModeIn (theSelectionMode))
aStatus->AddSelectionMode (theSelectionMode);
mgrSelector->Activate (theIObj, theSelectionMode, myMainSel);
}
}

31
tests/bugs/vis/bug26596 Normal file
View File

@@ -0,0 +1,31 @@
puts "============"
puts "CR26596"
puts "============"
puts ""
##########################################################################################
puts "Visualization - hidden twice times structure should not be selectable"
##########################################################################################
pload MODELING VISUALIZATION
box b 1 2 3
vinit View1
vclear
vaxo
vsetdispmode 1
vdisplay b
vfit
verase b
vdisplay b
verase b
vmoveto 250 250
set aResColor [vreadpixel 165 263]
if {$aResColor == "0 1 1 1"} {
puts "ERROR: Zero selection mode was not deactivated at second AIS_InteractiveContext::Erase call"
}
set only_screen 1