Disable deselecting the branch if it becomes translucent because it crashes the UFO.

This commit is contained in:
ehofman
2004-03-17 15:20:20 +00:00
parent 4c77c1691b
commit 5a343da5cc

View File

@@ -108,11 +108,11 @@ change_alpha( ssgBase *_branch, float _blend )
return;
int num_colors = ((ssgLeaf *)_branch)->getNumColours();
unsigned int select_ = (_blend == 1.0) ? 0x0000 : 0xffff;
// unsigned int select_ = (_blend == 1.0) ? false : true;
for (i = 0; i < num_colors; i++)
{
((ssgSelector *)_branch)->select( select_ );
// ((ssgSelector *)_branch)->select( select_ );
float *color = ((ssgLeaf *)_branch)->getColour(i);
color[3] = _blend;
}