diff --git a/src/osgPlugins/obj/ReaderWriterOBJ.cpp b/src/osgPlugins/obj/ReaderWriterOBJ.cpp index d5bcc4a15..00978120d 100644 --- a/src/osgPlugins/obj/ReaderWriterOBJ.cpp +++ b/src/osgPlugins/obj/ReaderWriterOBJ.cpp @@ -591,18 +591,10 @@ osg::Drawable* ReaderWriterOBJ::makeDrawable_useSeperateIndices(GLMmodel* obj, G if (indexArraysEqual) { - //std::cout<<"Use draw element"<addPrimitiveSet(new osg::DrawElementsUInt(osg::PrimitiveSet::TRIANGLES,vertexIndices->begin(),vertexIndices->end())); - - osgUtil::TriStripVisitor tsv; - tsv.stripify(*geom); - } else { - //std::cout<<"Use sepeate indices arrays"<setVertexIndices(vertexIndices.get()); if (needColors) geom->setColorIndices(vertexIndices.get()); if (needNormals) geom->setNormalIndices(normalIndices.get()); @@ -613,6 +605,9 @@ osg::Drawable* ReaderWriterOBJ::makeDrawable_useSeperateIndices(GLMmodel* obj, G } + osgUtil::TriStripVisitor tsv; + tsv.stripify(*geom); + if (obj->numnormals==0) { osgUtil::SmoothingVisitor tsv; diff --git a/src/osgPlugins/obj/glm.cpp b/src/osgPlugins/obj/glm.cpp index 31991ea97..ad7c58ce1 100644 --- a/src/osgPlugins/obj/glm.cpp +++ b/src/osgPlugins/obj/glm.cpp @@ -277,11 +277,9 @@ _glmReadMTLTextureOptions(GLMmodel* model, unsigned int materialIndex, char* lin { char *token; char seps[] = " \t\n\r\f\v"; - std::cout<<"line ["<materials[materialIndex].textureName = strdup(token); - std::cout<<"token ["<materials[materialIndex].textureName<<"]"<