This is why sometimes I hate the internet, it's difficult to sort the facts from the noise.
Please CMIIW, I just took a quick look at that Wikipedia article about Meiji Restoration, so I might miss something. But I don't see any reference about banning nudity to curtail Western influence.
In fact, this article about History of Nudity in Japan actually mention:
The Japanese government began a campaign to institute a uniform national culture and suppress practices such as public nudity and urination that were unsightly, unhygienic, and disturbing to foreign visitors.
But again, this Wikipedia article only cites one source, and it's an outdated archived link, so I'm not sure about the credibility. The cited article mention:
The overall motivation for the Meiji state's interest in personal behavior was not some inherent sense of prudery. Instead it was concerned with the image of Japan and its people in the eyes of the powerful Western countries. A strong desire to gain Western approval and avoid its ridicule is revealed in measures seeking conformity to Western standards of public decency.
So I'm not sure where does that "curtailing Western influence" comes from. I think I might need to ask reddit's /r/AskHistorians when I have time, they usually have detailed knowledge and credibility about this.