simplify length checks in DM_calc_auto_bump_scale


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59781 954f8c5b-7b00-dc11-b283-0030488c597c
replace sqrt(dot()) with length functions.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59782 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles: add a sharpness input to the Cubic SSS falloff. When set to 1 this will
give a result more similar to the Compatible falloff option. The scale is x2
though to keep the perceived scatter radius roughly the same while changing the
sharpness. Difference with compatible will be mainly on non-flat geometry.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59783 954f8c5b-7b00-dc11-b283-0030488c597c
Fix a few issues reported by coverity scan.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59784 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #36649: Drivers for Freestyle parameters in Render Layer panel don't appear in Graph Editor.

The channels define code in ANIM_init_channel_typeinfo_data() was not synchronized with the
definition of channel types (eAnim_ChannelType) in ED_anim_api.h.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59785 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for missing filter button to visualize/hide animation data related to line styles.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59786 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for redundant multiple animation data items of the same line style in DopeSheet.
This could happen when a line style is shared by multiple linesets within a scene.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59787 954f8c5b-7b00-dc11-b283-0030488c597c
Fix cycles CUDA/OpenCL build error after recent change.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59788 954f8c5b-7b00-dc11-b283-0030488c597c
Added better support for line styles in the Outliner.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59789 954f8c5b-7b00-dc11-b283-0030488c597c
debug option for modifier stack calculation USE_MODIFIER_VALIDATE,
checks that every modifier gives a valid mesh (very slow) - so off by default even in debug mode.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59790 954f8c5b-7b00-dc11-b283-0030488c597c
tweaks to fly mode
- rotating the view is faster.
- arrow keys work (was only wasd-rf before)
- when stationary wheel or +/- will set z direction (so mouse wheel always sets the fly axis back to z)


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59792 954f8c5b-7b00-dc11-b283-0030488c597c
fix for glitch splitting horizontally with a high dpi, could make areas smaller then the header which pushed the original view out of the screen.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59793 954f8c5b-7b00-dc11-b283-0030488c597c
fix for window join action being interpreted as a split.

The limit for dragging a gesture on an area corner was smaller then the area hot-spot,
so you could click on the right-most side of the bottom-left corner, drag left - pass the gesture threshold and still be in the same area. so a motion intended as a join would register as a split.
Happened more with high DPI values. fix by ensuring the drag limit is always higher then the hotspot.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59794 954f8c5b-7b00-dc11-b283-0030488c597c
better fix for r59794, register a gesture when the mouse goes outside the actionzone.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59795 954f8c5b-7b00-dc11-b283-0030488c597c
fix for building on msvc


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59796 954f8c5b-7b00-dc11-b283-0030488c597c
Add new cursor types to data handling to account for Intuos 4 device (pen and eraser).

Thanks to Ayden Polat for helping to find out the cursor type codes.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59799 954f8c5b-7b00-dc11-b283-0030488c597c
Compile fix / Cycles:
* 'T' is now also used for the Subsurface closure.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59800 954f8c5b-7b00-dc11-b283-0030488c597c
Code cleanup / Cycles:
* Avoid special code, when Subsurface is enabled.
Ideally we should only use the function, and get rid of the extra duplicate, but this is slower on CUDA. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59805 954f8c5b-7b00-dc11-b283-0030488c597c
Code cleanup / Cycles:
* Removed unused member of the device_memory template. 

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