Fixed vertex buffer index calculation in ShaderPainter when rotations are used.