Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormano-wii <germano.costa@ig.com.br>2017-07-22 00:04:05 +0300
committermano-wii <germano.costa@ig.com.br>2017-07-22 00:04:05 +0300
commita27b6ae4a98c6f72d669b71c402291d6690c9e82 (patch)
treefeca7a88fc037aebba34a5f72845fe8d2b5396fd
parent70eac432b7ad5a702c7fb4e4a85433d5ca36e4cf (diff)
Transform: remove unused argument
-rw-r--r--source/blender/editors/transform/transform_snap_object.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/source/blender/editors/transform/transform_snap_object.c b/source/blender/editors/transform/transform_snap_object.c
index 378742c63b8..6c62c091a78 100644
--- a/source/blender/editors/transform/transform_snap_object.c
+++ b/source/blender/editors/transform/transform_snap_object.c
@@ -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);
}