diff options
author | Martin Poirier <theeth@yahoo.com> | 2008-06-05 18:49:12 +0400 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2008-06-05 18:49:12 +0400 |
commit | 172fe6ed2f963b952833f39729e1bac52b479a2f (patch) | |
tree | cd3755fd7ccdf8d3214eb647cce545f79cc78b13 /source/blender/include/BSE_view.h | |
parent | 6757b759ea29f8b59d92b2772efd2d0d1dac2c8a (diff) |
Bugfix: [#13619] Transform Rotate and Scale Strange
view: noclip version of int and float projection. Also project from behind the view's position and return coherent values for near clipping
transform: use the above functions for 2d center and helpline drawing
NOTE: the result for centers behind the camera (in perspective) isn't 100% perfect in the case of rotations because they always use the centered view vector as rotation axis and not the one aligned with the 2d center. Changing this would not be desirable anyway. At least it's predictible now.
Diffstat (limited to 'source/blender/include/BSE_view.h')
-rw-r--r-- | source/blender/include/BSE_view.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/include/BSE_view.h b/source/blender/include/BSE_view.h index 236f35f17c6..4b334fdd959 100644 --- a/source/blender/include/BSE_view.h +++ b/source/blender/include/BSE_view.h @@ -63,7 +63,9 @@ 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_int_noclip(float *vec, int *adr); void project_float(float *vec, float *adr); +void project_float_noclip(float *vec, float *adr); int boundbox_clip(float obmat[][4], struct BoundBox *bb); void fdrawline(float x1, float y1, float x2, float y2); |