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

0022912: After calling AIS_InteractiveContext::UnsetColor objects are drawn with the same color when transparency is changed

Added test case bugs/vis/bug22912
This commit is contained in:
apn 2014-03-04 16:59:43 +04:00 committed by abv
parent 62684c43f6
commit d53ae65f65

32
tests/bugs/vis/bug22912 Normal file
View File

@ -0,0 +1,32 @@
puts "==========="
puts "OCC22912"
puts "==========="
puts ""
########################################################################################################################
# After calling AIS_InteractiveContext::UnsetColor objects are drawn with the same color when transparency is changed
########################################################################################################################
restore [locate_data_file bug22912_p.brep] p
explode p
vinit
vdisplay p_1
vdisplay p_2
vfit
vsetdispmode p_1 1
vsetdispmode p_2 1
vsetcolor p_1 red
vsetcolor p_2 green
vunsetcolor p_1
vunsetcolor p_2
vsetcolor p_1 red
vsetcolor p_2 green
vsettransparency p_1 0.5
vsettransparency p_1 0
checkcolor 120 150 1 0.3 0.06
checkcolor 180 273 0.39 1 0.058
set only_screen 1