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>2012-09-27 00:14:30 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-09-27 00:14:30 +0400
commita12f5bbc7d4ce023315732b6a9ef2224047dcc2a (patch)
tree8504d944944d2b90a165a6ff2c7338f22e240d7e /source/blender/editors/interface/view2d_ops.c
parentaa49ca25d5e519b7ffe7d7d1c7c79017f5909972 (diff)
correct debug/test assignment being left in the UI_view2d_smooth_view() so it always recalculated.
Diffstat (limited to 'source/blender/editors/interface/view2d_ops.c')
-rw-r--r--source/blender/editors/interface/view2d_ops.c5
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 */