patch [#32791] Spelling mistakes corrected.
from Sunny Gogoi (darkowlzz) 


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51135 954f8c5b-7b00-dc11-b283-0030488c597c
Optimization for endian switching, but shifting is a lot faster then using a temp char (approx 18x speedup on my system).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51136 954f8c5b-7b00-dc11-b283-0030488c597c
patch [#32556] Stupid endian conversion in avi format
from Andreas Schwab (schwab)

modified to use code from BLI_endian_switch.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51137 954f8c5b-7b00-dc11-b283-0030488c597c
rename avi files (endian.h is common linux include).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51138 954f8c5b-7b00-dc11-b283-0030488c597c
add type checking for more error prone macros.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51139 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: glare stream operation was setting alpha array twice.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51140 954f8c5b-7b00-dc11-b283-0030488c597c
style cleanup: if();


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51142 954f8c5b-7b00-dc11-b283-0030488c597c
fix for logical errors
- range check on hair_velocity_smoothing() was off by one.
- cloth sim parm's are used before NULL check in readfile.c


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51143 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: use checks for empty rather then size in the BGE


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51145 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: grease pencil eraser had duplicated logic for getting screen coords of a point, move into a static function.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51146 954f8c5b-7b00-dc11-b283-0030488c597c
style cleanup: line length,
rename V3D_PROJ_RET_SUCCESS ->  V3D_PROJ_RET_OK


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51147 954f8c5b-7b00-dc11-b283-0030488c597c
Revert fix for #31806, needs a better solution, can hang compiling some shaders.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51148 954f8c5b-7b00-dc11-b283-0030488c597c
Fix file descriptor leak in BLI_file_ungzip_to_mem and small memleak in wm_window_title.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51149 954f8c5b-7b00-dc11-b283-0030488c597c
BGE: When applying movement to an object with the Character physics type, use the btKinematicCharacterController's setWalkDirection() instead of moving the physics object ourselves. This reduces issues with tunneling (the character going through other objects).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51150 954f8c5b-7b00-dc11-b283-0030488c597c
Grease Pencil py-api

* new/remove for GPencil frames/strokes/
* add/pop for points
* clear for frame/layer & grease_pencil
* copy for frame

+ fix for free_gpencil_frames() not clearing the active frame 


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