Fix T58600: update OSL scripts to work with OSL 1.10.x.

This commit is contained in:
Shane Ambler
2018-12-03 12:16:30 +01:00
committed by Brecht Van Lommel
parent 6bb825e083
commit 5a6f1fa563
5 changed files with 24 additions and 16 deletions

View File

@@ -19,11 +19,12 @@
/* Checker */
float checker(point p)
float checker(point ip)
{
p[0] = (p[0] + 0.000001) * 0.999999;
p[1] = (p[1] + 0.000001) * 0.999999;
p[2] = (p[2] + 0.000001) * 0.999999;
point p;
p[0] = (ip[0] + 0.000001) * 0.999999;
p[1] = (ip[1] + 0.000001) * 0.999999;
p[2] = (ip[2] + 0.000001) * 0.999999;
int xi = (int)fabs(floor(p[0]));
int yi = (int)fabs(floor(p[1]));