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.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51047 954f8c5b-7b00-dc11-b283-0030488c597c
make ED_view3d_project_int equivalent to ED_view3d_project_short functions.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51048 954f8c5b-7b00-dc11-b283-0030488c597c
Add translation context for volume (Audio), pitch (Rotation) and rename tip->tooltip for custom properties

Tracked in [#31062] [2.6x] Context Ambiguity List & Discussion (keep updating)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51049 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #32755: Stripes in Metastrip can not be moved on other channel with mouse (grab tool)

The issue was caused by SEQ_BEGIN macro modifying sequence's depth
which ruined transformation routines. Used own DFS instead which
doesn't modify sequences.

Also corrected some typos in api and comments.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51050 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for commit r51049: no need to create two contexts when one if enough.

Also please define and use constants in BLF_translation.h rather than directly typing contexts' names, it's safer (typo would break at compile time, instead of generating more contexts!).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51051 954f8c5b-7b00-dc11-b283-0030488c597c
Code cleanup: fix some clang checker warnings.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51053 954f8c5b-7b00-dc11-b283-0030488c597c
UI: buttons that open menus now align to the menu rather than looking disconnected.
Also fixed some cases where the menu was offset 1 or 2 pixels wrong, though not
quite all of them, still off by 1 pixel sometimes.

http://www.pasteall.org/pic/show.php?id=38478

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51054 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #31806: cycles crash rendering a particular node setup with multiple mix/add
shader nodes.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51055 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #32763: Image flickering appears if Movie Clip Editor and compositor opened

The issue was caused by compositor was allocating float buffer for image and
then this buffer was filled with data converted from byte buffer.

If display happens at time between float was allocated and it was filled black
areas were appearing on the screen.

Made it so IMB_float_from_rect locks color management thread so display
transform wouldn't use uninitialized buffer anymore.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51056 954f8c5b-7b00-dc11-b283-0030488c597c
Quick fix for [#32764] Some new object types are added at the origin instead of the 3D cursor

Own fault (r50994). Those "add object" ops really need a cleanup to make them more consistent! Will try to see this tomorrow.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51057 954f8c5b-7b00-dc11-b283-0030488c597c
Mesh Deform Modifier: binding is now accelerated with a BVH tree, can make it
much faster for complex meshes. Patch by Joe Eager.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51058 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles: add "From Dupli" option for texture coordinate node. This gets the
Generated and UV coordinates from the duplicator of instance instead of the
object itself.

This was used in e.g. Big Buck Bunny for texturing instanced feathers with
a UV map on the bird. Many files changed, mainly to do some refactoring to
get rid of G.rendering global in duplilist code.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51059 954f8c5b-7b00-dc11-b283-0030488c597c
* Fix Scons build when OCIO is disabled.
Still fails when it's enabled though (unresolved symbols).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51060 954f8c5b-7b00-dc11-b283-0030488c597c
SVN maintenance.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51061 954f8c5b-7b00-dc11-b283-0030488c597c
add ED_view3d_project_float_global, ED_view3d_project_float_object, ED_view3d_project_float_ex function calls and cleanup cursor3d set function which had some odd logic.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51062 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: quiet warnings and use define for transform snap max distance.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51063 954f8c5b-7b00-dc11-b283-0030488c597c
Improvements for knife tool execute function (code was a bit sloppy & could leak memory).

- vertex to screenspace projections were not checking for failure to project (vertex behind the view for eg).
- vertex screenspace 2d vectors were each malloc'd and added to own ghash, then fetched for each edge.
  now just store a vertex aligned array and do index lookups.
- projections were done in global space, now do them in object space (avoids a matrix multiply).
- error cases were commented out and would fail silently, now report them to the operator.
- remove MAX_CUTS hard coded limit, dynamically allocate the mouse path.
- add missing free calls in error cases.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51064 954f8c5b-7b00-dc11-b283-0030488c597c
replace ED_view3d_project_float with ED_view3d_project_float_global


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51065 954f8c5b-7b00-dc11-b283-0030488c597c
replace most uses of ED_view3d_project_float_noclip() with ED_view3d_project_float_global/object


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51066 954f8c5b-7b00-dc11-b283-0030488c597c
fix for bug in loop select, picking the active vert/edge/face was using global space checks on object space coordinates. this removes last use of ED_view3d_project_float_noclip().


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51067 954f8c5b-7b00-dc11-b283-0030488c597c