I haven't checked it in 7th gen, but in 6th gen it's determined by the save file the Pokemon is bred/caught on, not hatched, and the pattern your save file produces is determined by 3DS location when you started, so even with location changing you're stuck with one pattern per save file.