mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0029739: Draw Harness - vdonly does not hide displayed objects
This commit is contained in:
parent
fbcef69b1a
commit
b4dfd43648
@ -2956,7 +2956,7 @@ static int VDonly2 (Draw_Interpretor& ,
|
|||||||
}
|
}
|
||||||
|
|
||||||
const Handle(AIS_InteractiveObject) aShape = Handle(AIS_InteractiveObject)::DownCast (anIter.Key1());
|
const Handle(AIS_InteractiveObject) aShape = Handle(AIS_InteractiveObject)::DownCast (anIter.Key1());
|
||||||
if (aShape.IsNull())
|
if (!aShape.IsNull())
|
||||||
{
|
{
|
||||||
aCtx->Erase (aShape, Standard_False);
|
aCtx->Erase (aShape, Standard_False);
|
||||||
}
|
}
|
||||||
|
13
tests/v3d/wire_solid/L1
Normal file
13
tests/v3d/wire_solid/L1
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
puts "========"
|
||||||
|
puts "0029739: Draw Harness - vdonly does not hide displayed objects"
|
||||||
|
puts "========"
|
||||||
|
|
||||||
|
box b1 0 0 0 1 2 3
|
||||||
|
box b2 2 0 0 3 2 1
|
||||||
|
vclear
|
||||||
|
vaxo
|
||||||
|
vdisplay -dispMode 1 b1 b2
|
||||||
|
vfit
|
||||||
|
vdonly b1
|
||||||
|
if {[vreadpixel 100 100 rgb name] == "BLACK"} {puts "Error: wrong prs erased"}
|
||||||
|
if {[vreadpixel 300 300 rgb name] != "BLACK"} {puts "Error: wrong prs erased"}
|
Loading…
x
Reference in New Issue
Block a user