diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-09-27 00:14:30 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-09-27 00:14:30 +0400 |
commit | a12f5bbc7d4ce023315732b6a9ef2224047dcc2a (patch) | |
tree | 8504d944944d2b90a165a6ff2c7338f22e240d7e /source | |
parent | aa49ca25d5e519b7ffe7d7d1c7c79017f5909972 (diff) |
correct debug/test assignment being left in the UI_view2d_smooth_view() so it always recalculated.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/interface/view2d_ops.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/editors/interface/view2d_ops.c b/source/blender/editors/interface/view2d_ops.c index 3d3f309a8d4..09bec001902 100644 --- a/source/blender/editors/interface/view2d_ops.c +++ b/source/blender/editors/interface/view2d_ops.c @@ -1273,11 +1273,10 @@ void UI_view2d_smooth_view(bContext *C, ARegion *ar, } if (C && U.smooth_viewtx && fac > FLT_EPSILON) { - int changed = 0; /* zero means no difference */ + int changed = FALSE; if (BLI_rctf_compare(&sms.new_cur, &v2d->cur, FLT_EPSILON) == FALSE) - changed = 1; - changed=1; + changed = TRUE; /* The new view is different from the old one * so animate the view */ |