From: ehofman Date: Wed, 17 Mar 2004 15:20:20 +0000 (+0000) Subject: Disable deselecting the branch if it becomes translucent because it crashes the UFO. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5a343da5cc0300e59d6051b5e129d78fdbd6b078;p=simgear.git Disable deselecting the branch if it becomes translucent because it crashes the UFO. --- diff --git a/simgear/scene/model/animation.cxx b/simgear/scene/model/animation.cxx index b6bf5607..ce687086 100644 --- a/simgear/scene/model/animation.cxx +++ b/simgear/scene/model/animation.cxx @@ -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; }