]> git.mxchange.org Git - flightgear.git/commitdiff
Fix a bug with rabbit light creation.
authorcurt <curt>
Mon, 21 Oct 2002 16:09:11 +0000 (16:09 +0000)
committercurt <curt>
Mon, 21 Oct 2002 16:09:11 +0000 (16:09 +0000)
src/Objects/pt_lights.cxx

index 3041d1febb09be7d4ca3f0854b612d42d3c80a84..d67fe73f698db1d86ac3b3e60710712d4d3b75bf 100644 (file)
@@ -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 );