Cycles code refactor: replace magic ~0 values in the code with defines.
This commit is contained in:
@@ -322,7 +322,7 @@ ccl_device void svm_node_tex_image_box(KernelGlobals *kg, ShaderData *sd, float
|
||||
float3 N = sd->N;
|
||||
|
||||
N = sd->N;
|
||||
if(sd->object != ~0)
|
||||
if(sd->object != OBJECT_NONE)
|
||||
object_inverse_normal_transform(kg, sd, &N);
|
||||
|
||||
/* project from direction vector to barycentric coordinates in triangles */
|
||||
|
Reference in New Issue
Block a user