diff --git a/src/osgPlugins/dae/daeRMaterials.cpp b/src/osgPlugins/dae/daeRMaterials.cpp index 02c920537..6c2887f3d 100644 --- a/src/osgPlugins/dae/daeRMaterials.cpp +++ b/src/osgPlugins/dae/daeRMaterials.cpp @@ -1047,7 +1047,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;