style cleanup


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60901 954f8c5b-7b00-dc11-b283-0030488c597c
refactor transform.c - minor changes
- use TREDRAW_HARD define
- use apply prefix for transform callbacks.
- make callbacks static.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60902 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#37179] All transformation normals drawn when proportional edit, individual origins and normal transform orientation are set
thanks to psy-fi for the initial patch.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60903 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: minor transform refactor
redraw flag were mixing up types - int/char/bool, add enum type to use instead.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60904 954f8c5b-7b00-dc11-b283-0030488c597c
fix for negated normal being used when using individual centers & normal orientation in vertex select mode.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60905 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for OSL bug reported on IRC by Pablo Vasquez: Clamp option of the math node in OSL produces bad results. Really stupid bug, OSL math node was assigning the clamped 1st input value instead of the
clamped result of the actual operation.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60906 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #37175, Viewer node issue for newly toggled render passes.
The RenderLayers node would use the "combined" image result for all passes which don't have a valid render result yet. This causes problems when the buffer element size is not actually 4 floats (RGBA) as
with the 3 float normal passes. Also the result is rather meaningless then, so just keep the image buffer at NULL for unavailable passes, which will return plain (0,0,0) color.

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