Warning Fixes - const correctness in unicode encoding, unused variables in blenlib, and some type conversions

This is from a patch that is in the tracker, but it leaves out a fix of BLI_gzopen which needs more work.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45477 954f8c5b-7b00-dc11-b283-0030488c597c
Fixed compile error when building with WITH_LZMA and not WITH_LZO for pointcache compression.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45478 954f8c5b-7b00-dc11-b283-0030488c597c
bugfix [#30760] edit text property bug
backspace was messing up with utf8 text.
hijacking Blender utf8 functions

tested in CMake but I think scons should work too. No idea about pure 'make'
Happy Easter ;)

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45479 954f8c5b-7b00-dc11-b283-0030488c597c
Fix bug [#30863] Array Modifier Start and End Cap cause crash when the Cap Object has vertex group

Another crash with array caps, was caused by not making a deep enough
copy of CD field.

Also fixed the type of the 'mask' parameter, was int where it should
be 64-bit.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45480 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for last commit, forgot to free dup memory.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45481 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#30865] Crash when browsing last operators in outliner (or by Python API)

Operator descriptions can be NULL pointers,
fix this by making use of PROP_NEVER_NULL flag, when its not set, generated string funcs will test for NULL.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45482 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#30852] Wrong Material ID applied for the new faces


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45483 954f8c5b-7b00-dc11-b283-0030488c597c
use 'const float[3]' for derived mesh callback args.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45484 954f8c5b-7b00-dc11-b283-0030488c597c
Fixes for MovieClip strip user counter.
Currently copies behavior of clip and image editors:
- On file load, all strip will reference clip they're using
- On adding new strip, clip would be referenced only if it've got zero user
- On removing strip clip wouldn't be de-referenced to prevent clip editors
  pointing to zero-counted datablocks.
Not actually ideal from human beings point of view, but referencing/dereferencing
clip on each strip add/delete is getting crappy because of current logic of how
clip datablocks are referenced from clip editor (which is designed to work fine with
loading files without loading UI).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45485 954f8c5b-7b00-dc11-b283-0030488c597c
patch [#30669] Inconsistency of Transform Operator Descriptions
from Harley Acheson (harley) 


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45486 954f8c5b-7b00-dc11-b283-0030488c597c
Game Engine:
* Scons compile fix for svn 45479. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45487 954f8c5b-7b00-dc11-b283-0030488c597c
Particle System UI:
* Negate label in the Vertex Groups panel was misleading to the string buttons, rather then the check boxes. Fixed it by having 2 columns.
Not ideal still, but better! :)

Issue reported by Tobias Kummer. Thanks!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45488 954f8c5b-7b00-dc11-b283-0030488c597c
Fix bug 30866: prevent 2-sided polygons from knife cuts.
Blender bmesh code assumes there aren't any of those, so crashed
when trying to delete a vertex involved in one.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45489 954f8c5b-7b00-dc11-b283-0030488c597c
Bugfix [#30835]: Cycles doesn't work with AMD Juniper GPU, compiller throws errors. Thanks for reporting!

Problem: AMD does not like something like this.
float3 *a;
flaot b = a->x;

You need to circumvent this by using:
float3 *a;
float b = (*a).x;

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45490 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles/OpenCL:
* Reverted the general activation of __KERNEL_SHADING__.
Better to handle this in the device file. This way each platform gets specifically what it is capable of atm. 

* Nvidia has Shading + Multi Closure
* AMD (Apple) has only Clay Render
* AMD (non Apple) has Basic Shading 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45491 954f8c5b-7b00-dc11-b283-0030488c597c
Fix own mistake with kyrgyz iso code (did not seem to bother blender, though…).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45492 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#30880] Selected to Adjacent Unselected broken


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45493 954f8c5b-7b00-dc11-b283-0030488c597c
uv editor: don't draw active face stipple when the face isn't visible (error from bmesh merge), also replace 'em->bm' with 'bm' var while drawing.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45494 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#30878] Lightmap Pack > New Image does not work


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45495 954f8c5b-7b00-dc11-b283-0030488c597c
expose double limit used by auto-merge, addresses bug [#30884]


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