- Timestamp:
- 06/04/09 16:07:12 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgdatabaserevisions/osgdatabaserevisions.cpp
r10310 r10311 67 67 #endif 68 68 69 std::string url, username, password;70 while(arguments.read("--login",url, username, password))71 {72 if (!osgDB::Registry::instance()->getAuthenticationMap())73 {74 osgDB::Registry::instance()->setAuthenticationMap(new osgDB::AuthenticationMap);75 osgDB::Registry::instance()->getAuthenticationMap()->addAuthenticationDetails(76 url,77 new osgDB::AuthenticationDetails(username, password)78 );79 }80 }81 82 69 // set up the camera manipulators. 83 70 { … … 136 123 if (fileCache) 137 124 { 138 osg::notify(osg::NOTICE)<<"We have FileCache "<<fileCache<<std::endl;139 125 fileCache->loadDatabaseRevisionsForFile(file); 126 127 // fileCache->loadDatabaseRevisionsForFile(file); // test to make sure that repeated loads of same revision file doesn't cause problems 140 128 } 129 141 130 142 131 // load the data
