Fix a visibility condition bug in 3d panel.
This commit is contained in:
parent
d8b6786d20
commit
519ac21fa8
1 changed files with 10 additions and 5 deletions
|
@ -83,11 +83,16 @@ get_aspect_adjust (int xsize, int ysize)
|
||||||
bool
|
bool
|
||||||
fgPanelVisible ()
|
fgPanelVisible ()
|
||||||
{
|
{
|
||||||
return (fgGetBool("/sim/virtual-cockpit") ||
|
if(current_panel == 0)
|
||||||
((current_panel != 0) &&
|
return false;
|
||||||
(current_panel->getVisibility()) &&
|
if(current_panel->getVisibility() == 0)
|
||||||
(globals->get_viewmgr()->get_current() == 0) &&
|
return false;
|
||||||
(globals->get_current_view()->get_view_offset() == 0.0)));
|
if(globals->get_viewmgr()->get_current() != 0)
|
||||||
|
return false;
|
||||||
|
if(globals->get_current_view()->get_view_offset() != 0 &&
|
||||||
|
!fgGetBool("/sim/virtual-cockpit"))
|
||||||
|
return false;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue