Is it possible to lock the texture's rotation while using texture coordinates?

Thank you for this suggestion. This does work, however, it also defeats the whole purpose of what I intended to use it for.

If you look at this post you’ll understand:

The node tree I came up is similar and inspired by the one they gave. However, there was the issue of it rotating and not staying in its rest position. It could be a big issue if I applied this type of node tree to a dress where the texture pattern needs to stay aligned to a mesh character at the rest angle for example.