- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/expPrimaryRecords.cpp
r12292 r13041 1 /* 1 /* 2 2 * This library is open source and may be redistributed and/or modified under 3 3 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or (at 4 4 * your option) any later version. The full license is in the LICENSE file 5 5 * included with this distribution, and on the openscenegraph.org website. 6 * 6 * 7 7 * This library is distributed in the hope that it will be useful, but 8 8 * WITHOUT ANY WARRANTY; without even the implied warranty of … … 212 212 213 213 214 // 214 // 215 215 // Since OpenFlight doesn't have 'Sequence' records---just Group records that 216 216 // may, optionally, be animated---this routine sets the animation-related … … 220 220 FltExportVisitor::writeSequence( const osg::Sequence& sequence ) 221 221 { 222 222 223 223 int32 flags = 0, loopCount = 0; 224 224 float32 loopDuration = 0.0f, lastFrameDuration = 0.0f; … … 227 227 int firstChildDisplayed, lastChildDisplayed; 228 228 sequence.getInterval(mode, firstChildDisplayed, lastChildDisplayed); 229 229 230 230 if (firstChildDisplayed == 0) 231 231 { … … 423 423 // Selectively turn off overrides for resources we don't need 424 424 const ParentPools* pp = dynamic_cast<const ParentPools*>(proxy.getUserData() ); 425 425 426 426 if (pp && pp->getColorPool() ) 427 427 flags &= ~COLOR_PALETTE_OVERRIDE; … … 533 533 int32 numWordsPerMask = ms->getNumChildren() / 32; 534 534 if (ms->getNumChildren() % 32 != 0) ++numWordsPerMask; 535 535 536 536 uint16 length( 28 + numMasks * numWordsPerMask * sizeof(int32) ); 537 537 IdHelper id(*this, ms->getName() ); … … 549 549 { 550 550 // ... write out the set of 32-bit words comprising the mask 551 uint32 maskWord = 0; 551 uint32 maskWord = 0; 552 552 const osgSim::MultiSwitch::ValueList& maskBits = ms->getValueList(i); 553 553 … … 567 567 568 568 // If the mask size wasn't a multiple of 32, need to write out 569 // the final word containing the 'remainder' bits 569 // the final word containing the 'remainder' bits 570 570 if (maskBits.size() % 32 != 0) 571 571 { … … 599 599 600 600 // Bust the mask up into as many 32-bit words as are necessary to hold it 601 uint32 maskWord = 0; 601 uint32 maskWord = 0; 602 602 const osg::Switch::ValueList& maskBits = sw->getValueList(); 603 603 … … 617 617 618 618 // If the mask size wasn't a multiple of 32, need to write out 619 // the final word containing the 'remainder' bits 619 // the final word containing the 'remainder' bits 620 620 if (maskBits.size() % 32 != 0) 621 621 {
