diff --git a/src/osgPlugins/dae/daeRMaterials.cpp b/src/osgPlugins/dae/daeRMaterials.cpp index bedec1a95..48d756610 100644 --- a/src/osgPlugins/dae/daeRMaterials.cpp +++ b/src/osgPlugins/dae/daeRMaterials.cpp @@ -1048,7 +1048,7 @@ osg::Texture2D* daeReader::processTexture( return NULL; } - if (sampler->getSource() == NULL ) + if (sampler->getSource() == NULL || sampler->getSource()->getValue() == NULL) { OSG_WARN << "Could not locate source for sampler2D" << std::endl; return NULL;