Fix a bug with rabbit light creation.
This commit is contained in:
parent
b0d12281c8
commit
a4c06de42f
1 changed files with 0 additions and 7 deletions
|
@ -288,8 +288,6 @@ ssgTimedSelector *gen_rabbit_lights( const point_list &nodes,
|
||||||
const string &material,
|
const string &material,
|
||||||
sgVec3 up )
|
sgVec3 up )
|
||||||
{
|
{
|
||||||
bool first = true;
|
|
||||||
|
|
||||||
sgVec3 nup;
|
sgVec3 nup;
|
||||||
sgNormalizeVec3( nup, up );
|
sgNormalizeVec3( nup, up );
|
||||||
|
|
||||||
|
@ -353,11 +351,6 @@ ssgTimedSelector *gen_rabbit_lights( const point_list &nodes,
|
||||||
leaf->setCallback( SSG_CALLBACK_POSTDRAW, StrobePostDraw );
|
leaf->setCallback( SSG_CALLBACK_POSTDRAW, StrobePostDraw );
|
||||||
|
|
||||||
rabbit->addKid( leaf );
|
rabbit->addKid( leaf );
|
||||||
if ( first ) {
|
|
||||||
// ssg bug where first entry in animation is ignored.
|
|
||||||
rabbit->addKid( leaf );
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
rabbit->setDuration( 10 );
|
rabbit->setDuration( 10 );
|
||||||
|
|
Loading…
Add table
Reference in a new issue