Commit: 7915cc7ddbc221385e824f737ff7e48e5f52a1dd
Author: Germano
Date:   Thu May 3 15:52:09 2018 -0300
Branches: master
https://developer.blender.org/rB7915cc7ddbc221385e824f737ff7e48e5f52a1dd

Particle Edit: Shape Cut: Create and use bvhtree with AABB hull.

This bvhtree is only used for raycast. Currently the raycast does not benefit 
from general hull.

===================================================================

M       source/blender/editors/physics/particle_edit.c

===================================================================

diff --git a/source/blender/editors/physics/particle_edit.c 
b/source/blender/editors/physics/particle_edit.c
index 50e3e20223d..2f18a0cd4c0 100644
--- a/source/blender/editors/physics/particle_edit.c
+++ b/source/blender/editors/physics/particle_edit.c
@@ -401,7 +401,7 @@ static bool PE_create_shape_tree(PEData *data, Object 
*shapeob)
                return false;
        }
        
-       return (bvhtree_from_mesh_looptri(&data->shape_bvh, dm, 0.0f, 4, 8) != 
NULL);
+       return (bvhtree_from_mesh_get(&data->shape_bvh, dm, 
BVHTREE_FROM_LOOPTRI, 4) != NULL);
 }
 
 static void PE_free_shape_tree(PEData *data)

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to