Assimp Texture Loading


I want to know why and how to fix this:
Sometimes assimp doesnt recognize 3D models’ texture. Even when I try to load it as embeded texture. I want to know how do I “fix it” (maybe in blender , or in code) to make assimp recognize that the materials’s mesh have a texture.

		uint32_t textureCount = scene->mMaterials[i]->GetTextureCount(aiTextureType_DIFFUSE);

this returns 0, for models that clearly have texture.