From 5a343da5cc0300e59d6051b5e129d78fdbd6b078 Mon Sep 17 00:00:00 2001 From: ehofman Date: Wed, 17 Mar 2004 15:20:20 +0000 Subject: [PATCH] Disable deselecting the branch if it becomes translucent because it crashes the UFO. --- simgear/scene/model/animation.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5