- // If the view is internal, the previous line draw the
- // cockpit with modified near/far clip planes and deselect
- // the aircraft in the global scenegraph
- // Otherwise, it just enables the aircraft: The scenegraph
- // must be drawn again to see the plane.
- ssgBranch *branch = globals->get_scenery()->get_aircraft_branch();
- // in external view the shadows are drawn before the transparent parts of the ac
- if( ! is_internal )
- branch->setTravCallback( SSG_CALLBACK_POSTTRAV, SGShadowVolume::ACpostTravCB);
- ssgCullAndDraw( globals->get_scenery()->get_scene_graph() );
- branch->setTravCallback( SSG_CALLBACK_POSTTRAV, 0);