Cycles:
* CUDA: Make it more clear that sm_12 and below is not supported.
* OpenCL: __KERNEL_SHADING__ was declared twice for nvidia opencl device.
* Some reshuffle of defines in kernel_types.h. No functional changes. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53823 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #33838: light render passes for non-progressive integrator were not correct.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53824 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles Hair: Introduction of Cardinal Spline Curve Segments and minor fixes.

The curve segment primitive has been added. This includes an intersection function and changes to the BVH.

A few small errors in the line segment intersection routine are also fixed.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53825 954f8c5b-7b00-dc11-b283-0030488c597c
Fix CUDA compile after last commit.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53826 954f8c5b-7b00-dc11-b283-0030488c597c
WM / Screenshot fix:
* Screenshot resolution was wrong on Macbook Retina (did only capture a cropped part of the screen). 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53827 954f8c5b-7b00-dc11-b283-0030488c597c
fix for typo in recent commit.


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53829 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup:
- cycles ui used 'cscene' for scene.cycles and scene.cycles_curves
- style cleanup


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53831 954f8c5b-7b00-dc11-b283-0030488c597c
minor changes to ghost
- use WITH_ASSERT_ABORT define, so GHOST_ASSERT will abort.
- rename XTablet -> GHOST_TabletX11, was confusing since it was named like an xlib struct.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53832 954f8c5b-7b00-dc11-b283-0030488c597c
resolve issue [#33882] New GG slide - Lost functionality
Holding Alt stops switching the active edge so you can drag in the negative direction.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53833 954f8c5b-7b00-dc11-b283-0030488c597c
text syntax highlighting, add utility function 'text_format_fill()' which fills in the line with a formatting value.

this fixes a mistake in OSL lexer which would comment all lines after '//'


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53834 954f8c5b-7b00-dc11-b283-0030488c597c
Unification of brush code

Move anchored and rake options away from Sculpt struct and to
UnifiedPaintSettings where they may be used by other tools in the future
(carefree whistle...)

No functionality should change but if it does I'll follow the screams...

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53835 954f8c5b-7b00-dc11-b283-0030488c597c
correction to last commit


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53836 954f8c5b-7b00-dc11-b283-0030488c597c
patch [#33888] Syntax Highlighting Changes
from Benjamin Tolputt (btolputt), (with minor changes)

adds support for LUA syntax highlighting.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53837 954f8c5b-7b00-dc11-b283-0030488c597c
text syntax highlighting: don't use utf8 stepping if we know the text is ascii


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53838 954f8c5b-7b00-dc11-b283-0030488c597c
move double click check into its own function.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53839 954f8c5b-7b00-dc11-b283-0030488c597c
don't check for mouse-movement if the double click event isn't on a mouse-button.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53840 954f8c5b-7b00-dc11-b283-0030488c597c
dont add identifiers starting with digits to autocomplete



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53841 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #33877: Pressure Sensitivity stop after opening User Preferences Window

Issue was caused by opening the same device id twice and closing one of
descriptors on closing window. This used to close device used by other
windows.

Now moved all device-specific code to SystemX11, so opening and closing
happens only once.

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