fixing paint of 3d frame for 3d sprites