Blender Git Commit Log

Git Commits -> Revision 709903c

Revision 709903c by Campbell Barton (master)
October 4, 2012, 16:46 (GMT)
refactor ED_view3d_project_short & ED_view3d_project_short_noclip,

This is apart of a code cleanup to make ED_view3d_project_short/ED_view3d_project_int/ED_view3d_project_float interchangeable. Currently they work very differently in a way thats quite confusing (and cause of bugs in blender that remain uncorrected) - fixes coming.

There are also cases where ED_view3d_project_short is used, then the values are converted from shorts into int's after because ED_view3d_project_int() behaves differently, will unify behavior of these functions after this commit.

- rather then clip/noclip versions, pass flags (for bound-box clip, window clip).
- rather then store the invalid clip-value, return success (or error value clip_near, clip_bb, clip_win, overflow).
- remove local copies of project functions from drawobject.c: view3d_project_short_clip, view3d_project_short_noclip, view3d_project_short_clip_persmat.


add functions:
- ED_view3d_project_short_global() global space projection
- ED_view3d_project_short_object() object space projection.
- ED_view3d_project_short_ex() take perspective matrix and local space option as args.
- ED_view3d_project_base() - special function to set the Object 'Base' screen coords (sx, sy), since this is a common enough operation.

Commit Details:

Full Hash: 709903c6bba4dca12a6f367000f99a83da2af034
SVN Revision: 51047
Parent Commit: 794520a
Lines Changed: +254, -264

6 Modified Paths:

/source/blender/editors/armature/editarmature_sketch.c (+56, -47) (Diff)
/source/blender/editors/include/ED_view3d.h (+28, -2) (Diff)
/source/blender/editors/physics/particle_edit.c (+4, -3) (Diff)
/source/blender/editors/space_view3d/drawobject.c (+61, -151) (Diff)
/source/blender/editors/space_view3d/view3d_select.c (+29, -17) (Diff)
/source/blender/editors/space_view3d/view3d_view.c (+76, -44) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021