diff options
Diffstat (limited to 'source/blender/makesrna/intern')
-rw-r--r-- | source/blender/makesrna/intern/rna_screen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_screen.c b/source/blender/makesrna/intern/rna_screen.c index 1d9464ab7c5..e0431fcff16 100644 --- a/source/blender/makesrna/intern/rna_screen.c +++ b/source/blender/makesrna/intern/rna_screen.c @@ -176,9 +176,9 @@ static void rna_View2D_region_to_view(struct View2D *v2d, int x, int y, float re static void rna_View2D_view_to_region(struct View2D *v2d, float x, float y, int clip, int result[2]) { if (clip) - UI_view2d_view_to_region(v2d, x, y, &result[0], &result[1]); + UI_view2d_view_to_region_clip(v2d, x, y, &result[0], &result[1]); else - UI_view2d_to_region_no_clip(v2d, x, y, &result[0], &result[1]); + UI_view2d_view_to_region(v2d, x, y, &result[0], &result[1]); } #else |