Index: OpenSceneGraph/trunk/src/osgPlugins/3ds/ReaderWriter3DS.cpp
===================================================================
--- OpenSceneGraph/trunk/src/osgPlugins/3ds/ReaderWriter3DS.cpp (revision 10914)
+++ OpenSceneGraph/trunk/src/osgPlugins/3ds/ReaderWriter3DS.cpp (revision 10932)
@@ -349,7 +349,4 @@
     {
         if (mesh->faces[i].material>=0) {
-            //std::stringstream materialStr;
-            //materialStr << mesh->faces[i].material;
-            //materialFaceMap[materialStr.str()].push_back(i);
             materialFaceMap[mesh->faces[i].material].push_back(i);
         }
@@ -454,5 +451,6 @@
 
 
-    if (node->childs != NULL || pivoted || (!isOsgNodeMatrixIdentity && !noMatrixTransforms)) {
+    //if (node->childs != NULL || pivoted || (!isOsgNodeMatrixIdentity && !noMatrixTransforms)) {
+    if (node->childs != NULL || (!isOsgNodeMatrixIdentity && !noMatrixTransforms)) {
         if (isOsgNodeMatrixIdentity || noMatrixTransforms) {
             group = new osg::Group;
@@ -889,22 +887,6 @@
         osg::notify(osg::DEBUG_INFO) << "    LIB3DS_TEXTURE_RGB_TINT     "<<((texture->flags)&LIB3DS_TEXTURE_RGB_TINT)<< std::endl;
 
-        bool noTexture = false;
-        if (options)
-        {
-            std::istringstream iss(options->getOptionString());
-            std::string opt;
-            while (iss >> opt)
-            {
-                if (opt == "noTexture")
-                    noTexture = true;
-            }
-        }
-
-        osg::ref_ptr<osg::Image> osg_image = NULL;
-        if(noTexture)
-            osg_image = new osg::Image();
-        else
-            osg_image = osgDB::readRefImageFile(fileName.c_str(), options); //Absolute Path
-        if (!osg_image)
+        osg::ref_ptr<osg::Image> osg_image = osgDB::readRefImageFile(fileName.c_str(), options); //Absolute Path
+        if (!osg_image.valid())
         {
             osg::notify(osg::NOTICE) << "Warning: Cannot create texture "<<texture->name<< std::endl;
