]> git.mxchange.org Git - simgear.git/commitdiff
Disable deselecting the branch if it becomes translucent because it crashes the UFO.
authorehofman <ehofman>
Wed, 17 Mar 2004 15:20:20 +0000 (15:20 +0000)
committerehofman <ehofman>
Wed, 17 Mar 2004 15:20:20 +0000 (15:20 +0000)
simgear/scene/model/animation.cxx

index b6bf5607c56f8dcdc0556869d5dfd27afbbee8f8..ce6870861af67379c66d01ffd74f774250203678 100644 (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;
   }