anObjToClear.Add (anInteractive);
}
anOwner->State (0);
- if (theOwner == anObject->GlobalSelOwner())
+ if (anOwner == anObject->GlobalSelOwner())
{
myObjects.ChangeFind (anObject)->SetHilightStatus (Standard_False);
}
--- /dev/null
+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