diff --git a/src/osgPlugins/dae/daeRMaterials.cpp b/src/osgPlugins/dae/daeRMaterials.cpp index a85cc9a8f..9e7e216f7 100644 --- a/src/osgPlugins/dae/daeRMaterials.cpp +++ b/src/osgPlugins/dae/daeRMaterials.cpp @@ -1004,7 +1004,7 @@ osg::Texture2D* daeReader::processTexture( domImage *dImg = NULL; std::string target = std::string("./") + std::string(tex->getTexture()); - OSG_NOTICE<<"processTexture("<getSource() == NULL ) + { + OSG_WARN << "Could not locate source for sampler2D" << std::endl; + return NULL; + } + //find the newparam for the surface based on the sampler2D->source value target = std::string("./") + std::string( sampler->getSource()->getValue() ); daeSIDResolver res2( _currentEffect, target.c_str() );