Cycles: Make object flag names more obvious that hey are object and not shader
[blender.git] / intern / cycles / kernel / geom / geom_motion_triangle_shader.h
index c5dbc6a2f52a597a9498418d4a178904fec6f2ab..5b1e014f850871b17afa9288c12646649e0abb05 100644 (file)
@@ -81,7 +81,7 @@ ccl_device_noinline void motion_triangle_shader_setup(KernelGlobals *kg,
        }
        /* Compute face normal. */
        float3 Ng;
-       if(ccl_fetch(sd, flag) & SD_NEGATIVE_SCALE_APPLIED) {
+       if(ccl_fetch(sd, flag) & SD_OBJECT_NEGATIVE_SCALE_APPLIED) {
                Ng = normalize(cross(verts[2] - verts[0], verts[1] - verts[0]));
        }
        else {