Cleaned up the code for the animation flags of the group record.

This commit is contained in:
Robert Osfield 2003-01-08 16:30:48 +00:00
parent c5d3c860d8
commit 6727b8d5f7

View File

@ -569,11 +569,10 @@ osg::Group* ConvertFromFLT::visitGroup(osg::Group& osgParent, GroupRecord* rec)
{ {
SGroup* currentGroup = (SGroup*) rec->getData(); SGroup* currentGroup = (SGroup*) rec->getData();
bool forwardAnim , swingAnim;
// OpenFlight 15.7 has two animation flags, forward and swing // OpenFlight 15.7 has two animation flags, forward and swing
if ( (currentGroup->dwFlags & GroupRecord::FORWARD_ANIM)== GroupRecord::FORWARD_ANIM) forwardAnim = true; else forwardAnim = false; bool forwardAnim = (currentGroup->dwFlags & GroupRecord::FORWARD_ANIM);
if ( (currentGroup->dwFlags & GroupRecord::SWING_ANIM) == GroupRecord::SWING_ANIM) swingAnim = true; else swingAnim = false; bool swingAnim = (currentGroup->dwFlags & GroupRecord::SWING_ANIM);
if( forwardAnim || swingAnim ) if( forwardAnim || swingAnim )
{ {