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:
authorCampbell Barton <ideasman42@gmail.com>2010-04-24 03:57:00 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-04-24 03:57:00 +0400
commit39c0e690d3ad350195c8c68b7a8d317d056ff6a0 (patch)
tree8536e8465b35c4bd0a4728eac5e7f21fce5f60fa /source/blender/editors/space_view3d/view3d_view.c
parent394537715d1988056fe47a1c3a0dace6d39499e5 (diff)
sub_v3_v3v3 --> sub_v3_v3 (where possible)
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_view.c')
-rw-r--r--source/blender/editors/space_view3d/view3d_view.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/space_view3d/view3d_view.c b/source/blender/editors/space_view3d/view3d_view.c
index 02ef62b22d3..6a661f18959 100644
--- a/source/blender/editors/space_view3d/view3d_view.c
+++ b/source/blender/editors/space_view3d/view3d_view.c
@@ -166,7 +166,7 @@ static void view_settings_from_ob(Object *ob, float *ofs, float *quat, float *di
vec[0]= vec[1] = 0.0;
vec[2]= -(*dist);
mul_m3_v3(tmat, vec);
- sub_v3_v3v3(ofs, ofs, vec);
+ sub_v3_v3(ofs, vec);
}
/* Lens */
@@ -536,7 +536,7 @@ void viewline(ARegion *ar, View3D *v3d, float mval[2], float ray_start[3], float
mul_v3_fl(vec, 1.0f / vec[3]);
copy_v3_v3(ray_start, rv3d->viewinv[3]);
- sub_v3_v3v3(vec, vec, ray_start);
+ sub_v3_v3(vec, ray_start);
normalize_v3(vec);
VECADDFAC(ray_start, rv3d->viewinv[3], vec, v3d->near);
@@ -2044,12 +2044,12 @@ static int initFlyInfo (bContext *C, FlyInfo *fly, wmOperator *op, wmEvent *even
if (fly->rv3d->persp==RV3D_ORTHO)
fly->rv3d->persp= RV3D_PERSP; /*if ortho projection, make perspective */
QUATCOPY(fly->rot_backup, fly->rv3d->viewquat);
- VECCOPY(fly->ofs_backup, fly->rv3d->ofs);
- fly->rv3d->dist= 0.0;
+ copy_v3_v3(fly->ofs_backup, fly->rv3d->ofs);
+ fly->rv3d->dist= 0.0f;
upvec[2]= fly->dist_backup; /*x and y are 0*/
mul_m3_v3(mat, upvec);
- sub_v3_v3v3(fly->rv3d->ofs, fly->rv3d->ofs, upvec);
+ sub_v3_v3(fly->rv3d->ofs, upvec);
/*Done with correcting for the dist*/
}