diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-08-13 12:54:33 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-08-13 12:54:33 +0400 |
commit | 7d3e854aebdd26409c9d845487c80a1fbddc73bd (patch) | |
tree | d641ae3136a32fa9fbf6f6cb28053a5eed840405 /source/blender/editors/interface/view2d_ops.c | |
parent | 6324c5fed189f2f977e7571c2762f674a715a469 (diff) |
add hook now has option to add to active bone (mango request).
Diffstat (limited to 'source/blender/editors/interface/view2d_ops.c')
-rw-r--r-- | source/blender/editors/interface/view2d_ops.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/interface/view2d_ops.c b/source/blender/editors/interface/view2d_ops.c index d7f61b90cfa..33b72b34784 100644 --- a/source/blender/editors/interface/view2d_ops.c +++ b/source/blender/editors/interface/view2d_ops.c @@ -1198,13 +1198,13 @@ struct SmoothView2DStore { static float smooth_view_rect_to_fac(const rctf *rect_a, const rctf *rect_b) { float size_a[2] = {rect_a->xmax - rect_a->xmin, - rect_a->ymax - rect_a->ymin}; + rect_a->ymax - rect_a->ymin}; float size_b[2] = {rect_b->xmax - rect_b->xmin, - rect_b->ymax - rect_b->ymin}; + rect_b->ymax - rect_b->ymin}; float cent_a[2] = {(rect_a->xmax + rect_a->xmin) * 0.5f, - (rect_a->ymax + rect_a->ymin) * 0.5f}; + (rect_a->ymax + rect_a->ymin) * 0.5f}; float cent_b[2] = {(rect_b->xmax + rect_b->xmin) * 0.5f, - (rect_b->ymax + rect_b->ymin) * 0.5f}; + (rect_b->ymax + rect_b->ymin) * 0.5f}; float fac_max = 0.0f; float tfac; @@ -1228,7 +1228,7 @@ static float smooth_view_rect_to_fac(const rctf *rect_a, const rctf *rect_b) /* will start timer if appropriate */ /* the arguments are the desired situation */ void UI_view2d_smooth_view(bContext *C, ARegion *ar, - const rctf *cur) + const rctf *cur) { wmWindowManager *wm = CTX_wm_manager(C); wmWindow *win = CTX_wm_window(C); |