diff --git a/src/osgPlugins/dae/daeRMaterials.cpp b/src/osgPlugins/dae/daeRMaterials.cpp index 158ca35ef..2aae4e366 100644 --- a/src/osgPlugins/dae/daeRMaterials.cpp +++ b/src/osgPlugins/dae/daeRMaterials.cpp @@ -1017,6 +1017,11 @@ osg::Texture2D* daeReader::processTexture( domFx_surface_common *surface = NULL; domImage *dImg = NULL; + if(tex->getTexture() == NULL) + { + return NULL; + } + std::string target = std::string("./") + std::string(tex->getTexture()); OSG_INFO<<"processTexture("<getTexcoord(); + if(tex->getTexcoord() != NULL) + { + _texCoordSetMap[TextureToCoordSetMap::key_type(ss, tuu)] = tex->getTexcoord(); + } return t2D; }