mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0032708: Visualization, V3d_View::SetImmediateUpdate() - deprecate and disable by default implicit View redraws
This commit is contained in:
@@ -892,11 +892,17 @@ void AIS_ViewCube::StartAnimation (const Handle(AIS_ViewCubeOwner)& theOwner)
|
||||
{
|
||||
{
|
||||
Handle(Graphic3d_Camera) aBackupCamera = aView->Camera();
|
||||
Standard_DISABLE_DEPRECATION_WARNINGS
|
||||
const bool wasImmediateUpdate = aView->SetImmediateUpdate (false);
|
||||
Standard_ENABLE_DEPRECATION_WARNINGS
|
||||
|
||||
aView->SetCamera (myEndState);
|
||||
aView->SetProj (theOwner->MainOrientation(), myIsYup);
|
||||
aView->SetCamera (aBackupCamera);
|
||||
|
||||
Standard_DISABLE_DEPRECATION_WARNINGS
|
||||
aView->SetImmediateUpdate (wasImmediateUpdate);
|
||||
Standard_ENABLE_DEPRECATION_WARNINGS
|
||||
}
|
||||
|
||||
const gp_Dir aNewDir = myEndState->Direction();
|
||||
|
Reference in New Issue
Block a user