mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-06-30 12:14:08 +03:00
0031082: Visualization - crash on display if there are no lights in the view
OpenGl_View - fixed uninitialized property myLights.
This commit is contained in:
parent
a6a66c3a21
commit
8445efca81
@ -97,6 +97,7 @@ OpenGl_View::OpenGl_View (const Handle(Graphic3d_StructureManager)& theMgr,
|
|||||||
Handle(Graphic3d_CLight) aLight = new Graphic3d_CLight (Graphic3d_TOLS_AMBIENT);
|
Handle(Graphic3d_CLight) aLight = new Graphic3d_CLight (Graphic3d_TOLS_AMBIENT);
|
||||||
aLight->SetHeadlight (false);
|
aLight->SetHeadlight (false);
|
||||||
aLight->SetColor (Quantity_NOC_WHITE);
|
aLight->SetColor (Quantity_NOC_WHITE);
|
||||||
|
myLights = new Graphic3d_LightSet();
|
||||||
myNoShadingLight = new Graphic3d_LightSet();
|
myNoShadingLight = new Graphic3d_LightSet();
|
||||||
myNoShadingLight->Add (aLight);
|
myNoShadingLight->Add (aLight);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user