BKE: Smoke: Fix error with implicit declaration of function due recent changes.
authorGermano <germano.costa@ig.com.br>
Fri, 4 May 2018 13:11:30 +0000 (10:11 -0300)
committerGermano <germano.costa@ig.com.br>
Fri, 4 May 2018 13:11:30 +0000 (10:11 -0300)
source/blender/blenkernel/intern/smoke.c

index 0ea4007c95f9dd529b013e9020ad43c0cfffe8df..699f546bbef190bcb1e30b2c3e34998b6f7c9e15 100644 (file)
@@ -864,7 +864,7 @@ static void obstacles_from_derivedmesh(
                        copy_v3_v3(&scs->verts_old[i * 3], co);
                }
 
-               if (bvhtree_from_mesh_looptri(&treeData, dm, 0.0f, 4, 6)) {
+               if (bvhtree_from_mesh_get(&treeData, dm, BVHTREE_FROM_LOOPTRI, 4)) {
                        ObstaclesFromDMData data = {
                            .sds = sds, .mvert = mvert, .mloop = mloop, .looptri = looptri,
                            .tree = &treeData, .obstacle_map = obstacle_map,
@@ -1735,7 +1735,7 @@ static void emit_from_derivedmesh(Object *flow_ob, SmokeDomainSettings *sds, Smo
                        res[i] = em->res[i] * hires_multiplier;
                }
 
-               if (bvhtree_from_mesh_looptri(&treeData, dm, 0.0f, 4, 6)) {
+               if (bvhtree_from_mesh_get(&treeData, dm, BVHTREE_FROM_LOOPTRI, 4)) {
                        const float hr = 1.0f / ((float)hires_multiplier);
 
                        EmitFromDMData data = {