Fix strict compiler compilation
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 18 Apr 2017 07:41:15 +0000 (09:41 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 18 Apr 2017 07:41:15 +0000 (09:41 +0200)
source/blender/makesrna/intern/rna_object_api.c

index 6b3f4dc7bccf443cf7044c57a890a274731bf51f..9b9f0705bb447a727f893608f54718eeba09a3c5 100644 (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};