Fix for drawing meshes with VBOs disabled in sculpt mode

* This is another fix for r51118. Was drawing flat-shaded GPU buffers
  with VBOs even when VBOs were disabled in the preferences.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51431 954f8c5b-7b00-dc11-b283-0030488c597c
Grease Pencil: Tweaks to make tooltips show up for the different drawing tool
types available


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51433 954f8c5b-7b00-dc11-b283-0030488c597c
rna_sequencer_api.c doc string cleanup


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51434 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup:
- define array sizes for functions that take vectors.
- quiet some -Wshadow warnings.
- some copy/paste error in readfile.c made it set the same particle recalc flag twice.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51435 954f8c5b-7b00-dc11-b283-0030488c597c
Fix unix language setting fallback (long_locale is windows only!). This was preventing setting language when you did not have the relevant locale installed under Linux...

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51436 954f8c5b-7b00-dc11-b283-0030488c597c
Remove six languages from Blender UI (rational: very low level of translation, 1-2% at most, and no commit done in branch since more than one year): fi (Finnish), ca (Catalan), bg (Bulgarian), el (Greek), ne (Nepali) and pl (Polish).

Also fix compile in paranoid warning=errors mode for own last commit.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51437 954f8c5b-7b00-dc11-b283-0030488c597c
add BM_edge_find_double() and use in bmesh decimator to fix crash.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51438 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: quiet -Wshadow warning, var name changes for splice functions and add assert for BM_edge_splice() when edges don't use the same vertices.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51439 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: remove unused members of BMIter struct to save some space. (this iterator is used everywhere).
also rename vars in the struct.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51440 954f8c5b-7b00-dc11-b283-0030488c597c
More UI messages fixes and tweaks, and BKE_report<->BKE_reportf.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51441 954f8c5b-7b00-dc11-b283-0030488c597c
add TIMEIT_VALUE_PRINT() macro for printing timing between start/end macros.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51442 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles OSL: some build system tweaks to avoid global includes and definitions,
which ensures there is no conflict with other libraries, and avoids full rebuild
when toggling OSL on/off.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51443 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles OSL: most closure code is now shared between OSL and SVM. Also fix
transmission pass and filter glossy option.

The BSDF closure class is now more similar to the SVM closures, and includes
some flags and labels that are needed to properly categorize the BSDF's for
render passes. Phong closure is gone for the moment, needs to be adapated to
the new structure still.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51444 954f8c5b-7b00-dc11-b283-0030488c597c
switch order cmake includes warning flags so its possible to disable them


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51445 954f8c5b-7b00-dc11-b283-0030488c597c
Integer socket support in Cycles. Int values are already supported natively in OSL, but were not used as actual ints on the SVM stack. This patch implements all the necessary functionality to support reading input values from RNA properties and convert between SHADER_SOCKET_INT and other types.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51446 954f8c5b-7b00-dc11-b283-0030488c597c
dont ise -Wuninitialized on gcc 4.2 and older, it gives annoying warnings.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51447 954f8c5b-7b00-dc11-b283-0030488c597c
fix error in last commit


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51448 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles:
* Build system fixes for closure refactor. 


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51449 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for last commit, sorry! 


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