- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgWrappers/deprecated-dotosg/osg/PagedLOD.cpp
r10970 r13041 28 28 29 29 PagedLOD& lod = static_cast<PagedLOD&>(obj); 30 30 31 31 std::string path; 32 32 if (fr.read("DatabasePath",path)) … … 39 39 { 40 40 const std::string& path = fr.getOptions()->getDatabasePathList().front(); 41 if (!path.empty()) 41 if (!path.empty()) 42 42 { 43 43 lod.setDatabasePath(path); 44 44 } 45 } 45 } 46 46 } 47 47 48 48 unsigned int num; 49 49 if (fr[0].matchWord("NumChildrenThatCannotBeExpired") && fr[1].getUInt(num)) … … 53 53 iteratorAdvanced = true; 54 54 } 55 55 56 56 bool flag; 57 57 if (fr.read("DisableExternalChildrenPaging", flag)) … … 83 83 if (fr[0].getStr()) lod.setFileName(i,fr[0].getStr()); 84 84 else lod.setFileName(i,""); 85 85 86 86 ++fr; 87 87 ++i; … … 135 135 fw.indent() << "FileNameList "<<lod.getNumFileNames()<<" {"<< std::endl; 136 136 fw.moveIn(); 137 137 138 138 unsigned int numChildrenToWriteOut = 0; 139 139 140 140 for(unsigned int i=0; i<lod.getNumFileNames();++i) 141 141 { … … 145 145 ++numChildrenToWriteOut; 146 146 } 147 else 147 else 148 148 { 149 149 fw.indent() << lod.getFileName(i) << std::endl;
