From: curt Date: Mon, 21 Oct 2002 16:09:11 +0000 (+0000) Subject: Fix a bug with rabbit light creation. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a4c06de42f5759fa39e0c7190be3cb88c98465ec;p=flightgear.git Fix a bug with rabbit light creation. --- diff --git a/src/Objects/pt_lights.cxx b/src/Objects/pt_lights.cxx index 3041d1feb..d67fe73f6 100644 --- a/src/Objects/pt_lights.cxx +++ b/src/Objects/pt_lights.cxx @@ -288,8 +288,6 @@ ssgTimedSelector *gen_rabbit_lights( const point_list &nodes, const string &material, sgVec3 up ) { - bool first = true; - sgVec3 nup; sgNormalizeVec3( nup, up ); @@ -353,11 +351,6 @@ ssgTimedSelector *gen_rabbit_lights( const point_list &nodes, leaf->setCallback( SSG_CALLBACK_POSTDRAW, StrobePostDraw ); rabbit->addKid( leaf ); - if ( first ) { - // ssg bug where first entry in animation is ignored. - rabbit->addKid( leaf ); - } - } rabbit->setDuration( 10 );