- Timestamp:
- 02/26/10 10:33:48 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/3ds/WriterNodeVisitor.cpp
r11056 r11123 97 97 if (extendedFilePaths) return true; // Extended paths are simply those that fits the 64 bytes buffer! 98 98 99 unsigned int tokenBegin = 0; 100 for (unsigned int tokenEnd=0; tokenEnd != std::string::npos; tokenBegin = tokenEnd+1) { 99 // For each subdirectory 100 unsigned int tokenLen; 101 for (unsigned int tokenBegin=0, tokenEnd=0; tokenEnd == std::string::npos; tokenBegin = tokenEnd+1) 102 { 101 103 tokenEnd = s.find_first_of("/\\", tokenBegin); 102 if ( !is83(s.substr(tokenBegin, tokenEnd-tokenBegin-1)) ) return false; 104 if (tokenEnd != std::string::npos) tokenLen = tokenEnd-tokenBegin-1; // -1 to avoid reading the separator 105 else tokenLen = len-tokenBegin; 106 if ( tokenLen>0 && !is83(s.substr(tokenBegin, tokenLen)) ) return false; 103 107 } 104 108 return true;
