[Bf-blender-cvs] [d6ac6595504] temp-trimesh-sculpt: more int->SculptIdx refactoring
Joseph Eagar
noreply at git.blender.org
Wed Oct 14 04:05:50 CEST 2020
Commit: d6ac6595504254ed2f06a6fd4e89c71f2052fe44
Author: Joseph Eagar
Date: Tue Oct 13 15:30:46 2020 -0700
Branches: temp-trimesh-sculpt
https://developer.blender.org/rBd6ac6595504254ed2f06a6fd4e89c71f2052fe44
more int->SculptIdx refactoring
===================================================================
M source/blender/blenkernel/BKE_pbvh.h
M source/blender/blenkernel/intern/pbvh.c
M source/blender/blenkernel/intern/pbvh_bmesh.c
M source/blender/blenkernel/intern/pbvh_trimesh.c
M source/blender/editors/sculpt_paint/sculpt_intern.h
===================================================================
diff --git a/source/blender/blenkernel/BKE_pbvh.h b/source/blender/blenkernel/BKE_pbvh.h
index 0461e1e48b2..fb5f14eb8a6 100644
--- a/source/blender/blenkernel/BKE_pbvh.h
+++ b/source/blender/blenkernel/BKE_pbvh.h
@@ -174,7 +174,7 @@ bool BKE_pbvh_node_raycast(PBVH *pbvh,
struct IsectRayPrecalc *isect_precalc,
float *depth,
SculptIdx *active_vertex_index,
- SculptIdx *active_face_grid_index,
+ int *active_face_grid_index,
float *face_normal);
bool BKE_pbvh_bmesh_node_raycast_detail(PBVHNode *node,
diff --git a/source/blender/blenkernel/intern/pbvh.c b/source/blender/blenkernel/intern/pbvh.c
index b502711578d..04cf1767792 100644
--- a/source/blender/blenkernel/intern/pbvh.c
+++ b/source/blender/blenkernel/intern/pbvh.c
@@ -2202,7 +2202,7 @@ static bool pbvh_faces_node_raycast(PBVH *pbvh,
const float ray_normal[3],
struct IsectRayPrecalc *isect_precalc,
float *depth,
- int *r_active_vertex_index,
+ SculptIdx *r_active_vertex_index,
int *r_active_face_index,
float *r_face_normal)
{
@@ -2270,7 +2270,7 @@ static bool pbvh_grids_node_raycast(PBVH *pbvh,
const float ray_normal[3],
struct IsectRayPrecalc *isect_precalc,
float *depth,
- int *r_active_vertex_index,
+ SculptIdx *r_active_vertex_index,
int *r_active_grid_index,
float *r_face_normal)
{
@@ -2365,7 +2365,7 @@ bool BKE_pbvh_node_raycast(PBVH *pbvh,
const float ray_normal[3],
struct IsectRayPrecalc *isect_precalc,
float *depth,
- int *active_vertex_index,
+ SculptIdx *active_vertex_index,
int *active_face_grid_index,
float *face_normal)
{
diff --git a/source/blender/blenkernel/intern/pbvh_bmesh.c b/source/blender/blenkernel/intern/pbvh_bmesh.c
index 9b68b1d35e9..990ecfaaa21 100644
--- a/source/blender/blenkernel/intern/pbvh_bmesh.c
+++ b/source/blender/blenkernel/intern/pbvh_bmesh.c
@@ -1518,7 +1518,7 @@ bool pbvh_bmesh_node_raycast(PBVHNode *node,
struct IsectRayPrecalc *isect_precalc,
float *depth,
bool use_original,
- int *r_active_vertex_index,
+ SculptIdx *r_active_vertex_index,
float *r_face_normal)
{
bool hit = false;
diff --git a/source/blender/blenkernel/intern/pbvh_trimesh.c b/source/blender/blenkernel/intern/pbvh_trimesh.c
index 40cc079d75e..e26267dc004 100644
--- a/source/blender/blenkernel/intern/pbvh_trimesh.c
+++ b/source/blender/blenkernel/intern/pbvh_trimesh.c
@@ -1477,7 +1477,7 @@ bool pbvh_trimesh_node_raycast(PBVHNode *node,
struct IsectRayPrecalc *isect_precalc,
float *depth,
bool use_original,
- int *r_active_vertex_index,
+ SculptIdx *r_active_vertex_index,
float *r_face_normal)
{
bool hit = false;
diff --git a/source/blender/editors/sculpt_paint/sculpt_intern.h b/source/blender/editors/sculpt_paint/sculpt_intern.h
index f13072360bf..428256e427e 100644
--- a/source/blender/editors/sculpt_paint/sculpt_intern.h
+++ b/source/blender/editors/sculpt_paint/sculpt_intern.h
@@ -119,7 +119,7 @@ float *SCULPT_brush_deform_target_vertex_co_get(SculptSession *ss,
#define SCULPT_VERTEX_NEIGHBOR_FIXED_CAPACITY 256
typedef struct SculptVertexNeighborIter {
/* Storage */
- int *neighbors;
+ SculptIdx *neighbors;
int size;
int capacity;
SculptIdx neighbors_fixed[SCULPT_VERTEX_NEIGHBOR_FIXED_CAPACITY];
More information about the Bf-blender-cvs
mailing list