Changeset 13041 for OpenSceneGraph/trunk/src/osgPlugins/ive/ProxyNode.cpp
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/ive/ProxyNode.cpp
r10762 r13041 67 67 unsigned int numChildrenToWriteOut = 0; 68 68 unsigned int i; 69 69 70 70 std::string writeDirectory; 71 71 if (!(out->getOptions()->getDatabasePathList().empty())) writeDirectory = out->getOptions()->getDatabasePathList().front(); 72 72 73 73 if (!writeDirectory.empty()) writeDirectory = writeDirectory + "/"; 74 74 75 75 bool writeOutExternalIVEFIles = !out->getIncludeExternalReferences() && out->getWriteExternalReferenceFiles() && !out->getUseOriginalExternalReferences(); 76 76 77 77 for(i=0; i<getNumFileNames(); i++) 78 78 { … … 80 80 { 81 81 out->writeString(""); 82 82 83 83 if (i<getNumChildren()) ++numChildrenToWriteOut; 84 84 } … … 162 162 { 163 163 const std::string& path = in->getOptions()->getDatabasePathList().front(); 164 if (!path.empty()) 164 if (!path.empty()) 165 165 { 166 166 setDatabasePath(path); … … 184 184 osgDB::FilePathList& fpl = ((osgDB::ReaderWriter::Options*)in->getOptions())->getDatabasePathList(); 185 185 fpl.push_front( fpl.empty() ? osgDB::getFilePath(getFileName(i)) : fpl.front()+'/'+ osgDB::getFilePath(getFileName(i))); 186 addChild(in->readNode()); 186 addChild(in->readNode()); 187 187 fpl.pop_front(); 188 188 }
