forked from bartvdbraak/blender
Cycles: Fix unneeded int/float conversion happened in previous commit
This commit is contained in:
parent
4f2583ee13
commit
2a8a56929b
@ -67,7 +67,7 @@ void triangle_intersect_precalc(float3 dir,
|
|||||||
|
|
||||||
/* Swap kx and ky dimensions to preserve winding direction of triangles. */
|
/* Swap kx and ky dimensions to preserve winding direction of triangles. */
|
||||||
if(IDX(dir, kz) < 0.0f) {
|
if(IDX(dir, kz) < 0.0f) {
|
||||||
float tmp = kx;
|
int tmp = kx;
|
||||||
kx = ky;
|
kx = ky;
|
||||||
kx = tmp;
|
kx = tmp;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user