mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-21 10:13:43 +03:00
0030215: Application Framework, TPrsStd_AISPresentation - Enable Lazy Presentation Updates
This commit is contained in:
parent
da87ddc3eb
commit
78a8dfb9f8
@ -943,7 +943,7 @@ void TPrsStd_AISPresentation::AISErase(const Standard_Boolean theIsRemove)
|
|||||||
if ( !anOwnContext.IsNull() && anOwnContext != aContext )
|
if ( !anOwnContext.IsNull() && anOwnContext != aContext )
|
||||||
anOwnContext->Remove(myAIS, Standard_False);
|
anOwnContext->Remove(myAIS, Standard_False);
|
||||||
|
|
||||||
myAIS->SetToUpdate();
|
myAIS.Nullify();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -960,7 +960,7 @@ void TPrsStd_AISPresentation::AISErase(const Standard_Boolean theIsRemove)
|
|||||||
if ( !anOwnContext.IsNull() )
|
if ( !anOwnContext.IsNull() )
|
||||||
{
|
{
|
||||||
anOwnContext->Remove(myAIS, Standard_False);
|
anOwnContext->Remove(myAIS, Standard_False);
|
||||||
myAIS->SetToUpdate();
|
myAIS.Nullify();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
20
tests/bugs/caf/bug30215
Normal file
20
tests/bugs/caf/bug30215
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
puts "========="
|
||||||
|
puts "OCC30215"
|
||||||
|
puts "========="
|
||||||
|
puts ""
|
||||||
|
######################################################################################
|
||||||
|
# Application Framework, TPrsStd_AISPresentation - Enable Lazy Presentation Updates
|
||||||
|
######################################################################################
|
||||||
|
|
||||||
|
NewDocument D
|
||||||
|
AISInitViewer D
|
||||||
|
box b1 100 100 100
|
||||||
|
SetShape D 0:1 b1
|
||||||
|
AISSet D 0:1 NS
|
||||||
|
AISDisplay D 0:1 0
|
||||||
|
box b2 100 200 300
|
||||||
|
SetShape D 0:1 b2
|
||||||
|
AISRemove D 0:1
|
||||||
|
AISDisplay D 0:1 0
|
||||||
|
|
||||||
|
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
Loading…
x
Reference in New Issue
Block a user