In my 3D modeling and texturing article, I mentioned that a lot of the time involved in 3D texturing is spent dealing with UVs, the coordinate system that all 3D applications use for applying textures ...
The Flatten Visible Layers filter doesn't keep a texture if its name collides with the texture names in the merged layers, breaking UV mapping. These collisions are unavoidable when importing glTF ...