From ebaf3781fa4165808cd9ddb2ed0944788a31af7c Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 8 Apr 2014 14:45:48 +1000 Subject: Dyntopo: replace GHash with GSet, saves some memory --- source/blender/blenkernel/intern/pbvh_intern.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'source/blender/blenkernel/intern/pbvh_intern.h') diff --git a/source/blender/blenkernel/intern/pbvh_intern.h b/source/blender/blenkernel/intern/pbvh_intern.h index 1230d3a90b6..361f7c6cfde 100644 --- a/source/blender/blenkernel/intern/pbvh_intern.h +++ b/source/blender/blenkernel/intern/pbvh_intern.h @@ -104,7 +104,7 @@ struct PBVHNode { PBVHProxyNode *proxies; /* Dyntopo */ - GHash *bm_faces; + GSet *bm_faces; GSet *bm_unique_verts; GSet *bm_other_verts; float (*bm_orco)[3]; @@ -181,15 +181,11 @@ bool ray_face_intersection(const float ray_start[3], const float ray_normal[3], void pbvh_update_BB_redraw(PBVH *bvh, PBVHNode **nodes, int totnode, int flag); /* pbvh_bmesh.c */ -int pbvh_bmesh_node_raycast( +bool pbvh_bmesh_node_raycast( PBVHNode *node, const float ray_start[3], const float ray_normal[3], float *dist, int use_original); -int pbvh_bmesh_node_raycast_detail( - PBVHNode *node, const float ray_start[3], - const float ray_normal[3], float *detail, float *dist); - void pbvh_bmesh_normals_update(PBVHNode **nodes, int totnode); #endif -- cgit v1.2.3