Fixed painting rotations for 1.8

Breaks painting rotations for 1.7 and lower.