The texture paint handling was based on the shape anchor and didn't handle tiling. This patch solves this - furthermore texture paint without shape rotation is also handled.
Applied via r1863600