From b199f733f7a71218a20c3408af570aa1edf92642 Mon Sep 17 00:00:00 2001 From: ehofman Date: Thu, 20 May 2004 14:18:15 +0000 Subject: [PATCH] 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 --- simgear/scene/model/animation.cxx | 5 +++++ 1 file changed, 5 insertions(+) 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 () -- 2.39.5