static TextureContent GetMaterialTexture(Property property, IContentImporter importer, string modelFilename) { foreach (var srcobj in property.SrcObjects) { var tex = srcobj as Texture; if (tex != null) { var textureFilename = Path.Combine(Path.GetDirectoryName(modelFilename), tex.Filename); return(importer.ImportTexture2D(textureFilename, importer)); } } return(null); }