From: ehofman Date: Thu, 20 May 2004 14:18:15 +0000 (+0000) Subject: Frederic Bouvier: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b199f733f7a71218a20c3408af570aa1edf92642;p=simgear.git Frederic Bouvier: Melchior spotted a problem where we can crash an airplane into the beacon's beam. The patch below enable to mask out a branch from HOT traversal, whatever the animation. The beacon.xml file is also included. It has a false in a halo branch --- diff --git a/simgear/scene/model/animation.cxx b/simgear/scene/model/animation.cxx index 0e5e274e..8a1c73e2 100644 --- a/simgear/scene/model/animation.cxx +++ b/simgear/scene/model/animation.cxx @@ -182,6 +182,11 @@ SGAnimation::SGAnimation (SGPropertyNode_ptr props, ssgBranch * branch) : _branch(branch) { _branch->setName(props->getStringValue("name", 0)); + if ( props->getBoolValue( "enable-hot", true ) ) { + _branch->setTraversalMaskBits( SSGTRAV_HOT ); + } else { + _branch->clrTraversalMaskBits( SSGTRAV_HOT ); + } } SGAnimation::~SGAnimation ()