- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/x/ReaderWriterDirectX.cpp
r11545 r13041 94 94 } 95 95 96 // code for setting up the database path so that internally referenced file are searched for on relative paths. 96 // code for setting up the database path so that internally referenced file are searched for on relative paths. 97 97 osg::ref_ptr<Options> local_opt = options ? static_cast<Options*>(options->clone(osg::CopyOp::SHALLOW_COPY)) : new Options; 98 98 local_opt->setDatabasePath(osgDB::getFilePath(fileName)); … … 110 110 111 111 // Options? 112 bool flipTexture = true; 112 bool flipTexture = true; 113 113 bool switchToLeftHanded = true; // when true: swap y and z for incoming files 114 114 float creaseAngle = 80.0f; 115 115 if (options) { 116 116 const std::string option = options->getOptionString(); 117 if (option.find("rightHanded") != std::string::npos) { 117 if (option.find("rightHanded") != std::string::npos) { 118 118 switchToLeftHanded = false; 119 119 } 120 if (option.find("leftHanded") != std::string::npos) { 120 if (option.find("leftHanded") != std::string::npos) { 121 121 switchToLeftHanded = true; 122 122 } … … 205 205 // Texture-for-Image map 206 206 std::map<std::string, osg::Texture2D*> texForImage; 207 207 208 208 unsigned int i; 209 209 for (i = 0; i < meshMaterial->material.size(); i++) {
