diff options
Diffstat (limited to 'source/blender/editors/space_view3d')
4 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c index 49216310713..6b3e80e9224 100644 --- a/source/blender/editors/space_view3d/view3d_draw.c +++ b/source/blender/editors/space_view3d/view3d_draw.c @@ -1599,7 +1599,7 @@ static void draw_bgpic(Scene *scene, ARegion *ar, View3D *v3d) asp= ( (float)ibuf->y)/(float)ibuf->x; - vec[0] = vec[1] = vec[2] = 0.0; + zero_v3(vec); ED_view3d_project_float_v2(ar, vec, sco, rv3d->persmat); cx = sco[0]; cy = sco[1]; diff --git a/source/blender/editors/space_view3d/view3d_fly.c b/source/blender/editors/space_view3d/view3d_fly.c index 6e5a3b2dc54..819d3e0ca4a 100644 --- a/source/blender/editors/space_view3d/view3d_fly.c +++ b/source/blender/editors/space_view3d/view3d_fly.c @@ -314,7 +314,7 @@ static int initFlyInfo(bContext *C, FlyInfo *fly, wmOperator *op, wmEvent *event #ifdef NDOF_FLY_DRAW_TOOMUCH fly->redraw= 1; #endif - fly->dvec_prev[0] = fly->dvec_prev[1] = fly->dvec_prev[2] = 0.0f; + zero_v3(fly->dvec_prev); fly->timer = WM_event_add_timer(CTX_wm_manager(C), win, TIMER, 0.01f); diff --git a/source/blender/editors/space_view3d/view3d_snap.c b/source/blender/editors/space_view3d/view3d_snap.c index 55cc5af493e..1cc63e02c5d 100644 --- a/source/blender/editors/space_view3d/view3d_snap.c +++ b/source/blender/editors/space_view3d/view3d_snap.c @@ -225,7 +225,7 @@ static void make_trans_verts(Object *obedit, float *min, float *max, int mode) tottrans= 0; // global! INIT_MINMAX(min, max); - centroid[0]=centroid[1]=centroid[2]= 0.0; + zero_v3(centroid); if (obedit->type==OB_MESH) { Mesh *me= obedit->data; @@ -874,7 +874,7 @@ static int snap_curs_to_sel(bContext *C, wmOperator *UNUSED(op)) count= 0; INIT_MINMAX(min, max); - centroid[0]= centroid[1]= centroid[2]= 0.0; + zero_v3(centroid); if (obedit) { tottrans=0; diff --git a/source/blender/editors/space_view3d/view3d_view.c b/source/blender/editors/space_view3d/view3d_view.c index 5174c832ac4..b3d41150a31 100644 --- a/source/blender/editors/space_view3d/view3d_view.c +++ b/source/blender/editors/space_view3d/view3d_view.c @@ -807,7 +807,7 @@ void ED_view3d_project_float_v3(ARegion *ar, const float vec[3], float adr[3], f adr[2] = vec4[2]/vec4[3]; } else { - adr[0] = adr[1] = adr[2] = 0.0f; + zero_v3(adr); } } |