Transform: remove unused argument
This commit is contained in:
@@ -365,7 +365,7 @@ static void raycast_all_cb(void *userdata, int index, const BVHTreeRay *ray, BVH
|
||||
|
||||
static bool raycastDerivedMesh(
|
||||
SnapObjectContext *sctx,
|
||||
const float ray_orig[3], const float ray_start[3], const float ray_dir[3],
|
||||
const float ray_start[3], const float ray_dir[3],
|
||||
Object *ob, DerivedMesh *dm, float obmat[4][4], const unsigned int ob_index,
|
||||
/* read/write args */
|
||||
float *ray_depth,
|
||||
@@ -549,7 +549,7 @@ static bool raycastDerivedMesh(
|
||||
|
||||
static bool raycastEditMesh(
|
||||
SnapObjectContext *sctx,
|
||||
const float ray_orig[3], const float ray_start[3], const float ray_dir[3],
|
||||
const float ray_start[3], const float ray_dir[3],
|
||||
Object *ob, BMEditMesh *em, float obmat[4][4], const unsigned int ob_index,
|
||||
/* read/write args */
|
||||
float *ray_depth,
|
||||
@@ -710,7 +710,7 @@ static bool raycastEditMesh(
|
||||
*/
|
||||
static bool raycastObj(
|
||||
SnapObjectContext *sctx,
|
||||
const float ray_orig[3], const float ray_start[3], const float ray_dir[3],
|
||||
const float ray_start[3], const float ray_dir[3],
|
||||
Object *ob, float obmat[4][4], const unsigned int ob_index,
|
||||
bool use_obedit,
|
||||
/* read/write args */
|
||||
@@ -729,7 +729,7 @@ static bool raycastObj(
|
||||
em = BKE_editmesh_from_object(ob);
|
||||
retval = raycastEditMesh(
|
||||
sctx,
|
||||
ray_orig, ray_start, ray_dir,
|
||||
ray_start, ray_dir,
|
||||
ob, em, obmat, ob_index,
|
||||
ray_depth, r_loc, r_no, r_index, r_hit_list);
|
||||
}
|
||||
@@ -746,7 +746,7 @@ static bool raycastObj(
|
||||
}
|
||||
retval = raycastDerivedMesh(
|
||||
sctx,
|
||||
ray_orig, ray_start, ray_dir,
|
||||
ray_start, ray_dir,
|
||||
ob, dm, obmat, ob_index,
|
||||
ray_depth, r_loc, r_no, r_index, r_hit_list);
|
||||
|
||||
@@ -766,7 +766,6 @@ static bool raycastObj(
|
||||
|
||||
|
||||
struct RaycastObjUserData {
|
||||
const float *ray_orig;
|
||||
const float *ray_start;
|
||||
const float *ray_dir;
|
||||
unsigned int ob_index;
|
||||
@@ -787,7 +786,7 @@ static void raycast_obj_cb(SnapObjectContext *sctx, bool is_obedit, Object *ob,
|
||||
struct RaycastObjUserData *dt = data;
|
||||
dt->ret |= raycastObj(
|
||||
sctx,
|
||||
dt->ray_orig, dt->ray_start, dt->ray_dir,
|
||||
dt->ray_start, dt->ray_dir,
|
||||
ob, obmat, dt->ob_index++, is_obedit,
|
||||
dt->ray_depth,
|
||||
dt->r_loc, dt->r_no, dt->r_index,
|
||||
@@ -826,7 +825,7 @@ static void raycast_obj_cb(SnapObjectContext *sctx, bool is_obedit, Object *ob,
|
||||
*/
|
||||
static bool raycastObjects(
|
||||
SnapObjectContext *sctx,
|
||||
const float ray_orig[3], const float ray_start[3], const float ray_dir[3],
|
||||
const float ray_start[3], const float ray_dir[3],
|
||||
const SnapSelect snap_select, const bool use_object_edit_cage,
|
||||
/* read/write args */
|
||||
float *ray_depth,
|
||||
@@ -838,7 +837,6 @@ static bool raycastObjects(
|
||||
Object *obedit = use_object_edit_cage ? sctx->scene->obedit : NULL;
|
||||
|
||||
struct RaycastObjUserData data = {
|
||||
.ray_orig = ray_orig,
|
||||
.ray_start = ray_start,
|
||||
.ray_dir = ray_dir,
|
||||
.ob_index = 0,
|
||||
@@ -2207,7 +2205,7 @@ bool ED_transform_snap_object_project_ray_ex(
|
||||
{
|
||||
return raycastObjects(
|
||||
sctx,
|
||||
ray_start, ray_start, ray_normal,
|
||||
ray_start, ray_normal,
|
||||
params->snap_select, params->use_object_edit_cage,
|
||||
ray_depth, r_loc, r_no, r_index, r_ob, r_obmat, NULL);
|
||||
}
|
||||
@@ -2236,7 +2234,7 @@ bool ED_transform_snap_object_project_ray_all(
|
||||
|
||||
bool retval = raycastObjects(
|
||||
sctx,
|
||||
ray_start, ray_start, ray_normal,
|
||||
ray_start, ray_normal,
|
||||
params->snap_select, params->use_object_edit_cage,
|
||||
&ray_depth, NULL, NULL, NULL, NULL, NULL,
|
||||
r_hit_list);
|
||||
@@ -2419,7 +2417,7 @@ bool ED_transform_snap_object_project_view3d_ex(
|
||||
if (snap_to == SCE_SNAP_MODE_FACE) {
|
||||
return raycastObjects(
|
||||
sctx,
|
||||
ray_origin, ray_start, ray_normal,
|
||||
ray_start, ray_normal,
|
||||
params->snap_select, params->use_object_edit_cage,
|
||||
ray_depth, r_loc, r_no, r_index, NULL, NULL, NULL);
|
||||
}
|
||||
|
Reference in New Issue
Block a user