- Timestamp:
- 01/08/10 11:52:03 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/3ds/ReaderWriter3DS.cpp
r10914 r10932 349 349 { 350 350 if (mesh->faces[i].material>=0) { 351 //std::stringstream materialStr;352 //materialStr << mesh->faces[i].material;353 //materialFaceMap[materialStr.str()].push_back(i);354 351 materialFaceMap[mesh->faces[i].material].push_back(i); 355 352 } … … 454 451 455 452 456 if (node->childs != NULL || pivoted || (!isOsgNodeMatrixIdentity && !noMatrixTransforms)) { 453 //if (node->childs != NULL || pivoted || (!isOsgNodeMatrixIdentity && !noMatrixTransforms)) { 454 if (node->childs != NULL || (!isOsgNodeMatrixIdentity && !noMatrixTransforms)) { 457 455 if (isOsgNodeMatrixIdentity || noMatrixTransforms) { 458 456 group = new osg::Group; … … 889 887 osg::notify(osg::DEBUG_INFO) << " LIB3DS_TEXTURE_RGB_TINT "<<((texture->flags)&LIB3DS_TEXTURE_RGB_TINT)<< std::endl; 890 888 891 bool noTexture = false; 892 if (options) 893 { 894 std::istringstream iss(options->getOptionString()); 895 std::string opt; 896 while (iss >> opt) 897 { 898 if (opt == "noTexture") 899 noTexture = true; 900 } 901 } 902 903 osg::ref_ptr<osg::Image> osg_image = NULL; 904 if(noTexture) 905 osg_image = new osg::Image(); 906 else 907 osg_image = osgDB::readRefImageFile(fileName.c_str(), options); //Absolute Path 908 if (!osg_image) 889 osg::ref_ptr<osg::Image> osg_image = osgDB::readRefImageFile(fileName.c_str(), options); //Absolute Path 890 if (!osg_image.valid()) 909 891 { 910 892 osg::notify(osg::NOTICE) << "Warning: Cannot create texture "<<texture->name<< std::endl;
