mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
- fixed misprint in changing owner higlight status AIS_InteractiveContext::SetSelected; - duplicatied code for unhighlighting seleced owners was moved in a separate function; - test case for issue #26721
35 lines
916 B
Plaintext
35 lines
916 B
Plaintext
puts "============"
|
|
puts "CR26721"
|
|
puts "============"
|
|
puts ""
|
|
|
|
##########################################################################################
|
|
puts "Visualization - selection highlight of selected face is broken"
|
|
##########################################################################################
|
|
|
|
pload VISUALIZATION MODELING
|
|
|
|
box b 1 1 1
|
|
vinit
|
|
vdisplay b
|
|
vfit
|
|
|
|
# select box in 0 selection mode
|
|
vselect 200 200
|
|
|
|
vselmode 4 1
|
|
# select box's face
|
|
vselect 200 300
|
|
|
|
# check if highlight is correct:
|
|
# 1. check if other edges of the box are not highlighted
|
|
if {[vreadpixel 292 356 name] != "YELLOW 1"} {
|
|
puts "ERROR: the box is drawn with the color that isn't equal to default!"
|
|
}
|
|
# 2. check if previously selected face is highlighted with selection color
|
|
if {[vreadpixel 204 301 name] != "GRAY80 1"} {
|
|
puts "ERROR: the face selected is not highlighted with selection color!"
|
|
}
|
|
|
|
set only_screen 1
|