diff options
author | Sebastian Parborg <darkdefende@gmail.com> | 2019-12-04 18:00:03 +0300 |
---|---|---|
committer | Sebastian Parborg <darkdefende@gmail.com> | 2019-12-04 18:02:58 +0300 |
commit | 7868db9343d577784aa754418f2b888793a01d25 (patch) | |
tree | 56b4cb1d1ef6f813cc1881d50d2e26e89a8912ca /source/blender/editors/interface/interface_region_hud.c | |
parent | 824c2659382b2c76c3e6ec53ca598647af104446 (diff) |
Make curve decimation only take into account the selected curve points
Previously the decimation would take the whole curve into account when
decimating and not just the selected part.
This also contains various smaller bug fixes for the fcurve decimation.
Reviewed By: Sybren
Differential Revision: http://developer.blender.org/D6286
Diffstat (limited to 'source/blender/editors/interface/interface_region_hud.c')
-rw-r--r-- | source/blender/editors/interface/interface_region_hud.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_region_hud.c b/source/blender/editors/interface/interface_region_hud.c index 54bdbe0ec6e..fa471441cc9 100644 --- a/source/blender/editors/interface/interface_region_hud.c +++ b/source/blender/editors/interface/interface_region_hud.c @@ -265,6 +265,14 @@ static ARegion *hud_region_add(ScrArea *sa) ar->overlap = true; ar->flag |= RGN_FLAG_DYNAMIC_SIZE; + if (ar_win) { + float x, y; + + UI_view2d_scroller_size_get(&ar_win->v2d, &x, &y); + ar->runtime.offset_x = x; + ar->runtime.offset_y = y; + } + return ar; } |