1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00

0025775: "Default Gradient Backgound" in V3d_Viewer has no effect in new created V3d_View.

Complete the fix: add gradient background in second variant of V3d_View::SetWindow()
This commit is contained in:
abv 2015-08-25 11:17:18 +03:00
parent e09a591f48
commit e297ccbaa1

View File

@ -325,6 +325,7 @@ void V3d_View::SetWindow(const Handle(Aspect_Window)& aWindow,
MyView->SetWindow(aWindow, aContext, aDisplayCB, aClientData) ;
MyView->SetContext(MyViewContext) ;
MyView->SetBackground(MyBackground) ;
MyView->SetGradientBackground (MyGradientBackground, Standard_False);
MyViewer->SetViewOn(this) ;
MyView->Redraw() ;
}