diff options
author | Martin Poirier <theeth@yahoo.com> | 2005-06-05 17:50:21 +0400 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2005-06-05 17:50:21 +0400 |
commit | c00adc5ff8045db65fd15576b0addfd9e5c0eece (patch) | |
tree | b7540ce13ea2da2308337c716701a7b945e81afa /source/blender/include/BSE_view.h | |
parent | 38202abff8e625b313f81abffb4b90ef53f464d9 (diff) |
Transform 2D center was using short. Not good enough when it's it's way off screen. Switched to ints, that fixed the bug in the tracker.
Switching to floats would probably be safer in the long term, but too many things to test to do that now.
Diffstat (limited to 'source/blender/include/BSE_view.h')
-rw-r--r-- | source/blender/include/BSE_view.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/include/BSE_view.h b/source/blender/include/BSE_view.h index 49a41e26ab1..67aa7bfd6ad 100644 --- a/source/blender/include/BSE_view.h +++ b/source/blender/include/BSE_view.h @@ -50,6 +50,7 @@ void initgrabz(float x, float y, float z); void window_to_3d(float *vec, short mx, short my); void project_short(float *vec, short *adr); void project_short_noclip(float *vec, short *adr); +void project_int(float *vec, int *adr); void project_float(float *vec, float *adr); int boundbox_clip(float obmat[][4], struct BoundBox *bb); void fdrawline(float x1, float y1, float x2, float y2); |