Fix strict compiler compilation

This commit is contained in:
Sergey Sharybin 2017-04-18 09:41:15 +02:00
parent 8d78df315c
commit bb8f7784ce
Notes: blender-bot 2023-02-14 06:38:15 +01:00
Referenced by issue #52560, Cycles Rendering Discrepancy
1 changed files with 1 additions and 1 deletions

View File

@ -331,7 +331,7 @@ static void rna_Object_ray_cast(
/* Test BoundBox first (efficiency) */
BoundBox *bb = BKE_object_boundbox_get(ob);
float distmin;
if (!bb || isect_ray_aabb_v3_simple(origin, direction, bb->vec[0], bb->vec[6], &distmin, NULL) && distmin <= distance) {
if (!bb || (isect_ray_aabb_v3_simple(origin, direction, bb->vec[0], bb->vec[6], &distmin, NULL) && distmin <= distance)) {
BVHTreeFromMesh treeData = {NULL};