Cycles Hair: Two basic bair shaders added

A new hair bsdf node, with two closure options, is added. These closures allow the generation of the reflective and transmission components of hair. The node allows control of the highlight colour, roughness and angular shift.

Llimitations include:
-No glint or fresnel adjustments.
-The 'offset' is un-used when triangle primitives are used.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60151 954f8c5b-7b00-dc11-b283-0030488c597c
move editcurve add functions into their own source file editcurve_add.c


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60152 954f8c5b-7b00-dc11-b283-0030488c597c
move make_prim_radius_prop into a generic function.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60153 954f8c5b-7b00-dc11-b283-0030488c597c
replace RNA_property_array_length with RNA_property_array_check where the length of the array is only used to check if the property is an array or not.
(this isnt reliable since arrays can be zero length).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60154 954f8c5b-7b00-dc11-b283-0030488c597c
Undo the front-facing only commit for clay strips brushes, it adds an
attenuation that should really be optional. There's also a minor
performance penalty and all this only for one problematic case. In case
the tool flattens two surfaces, users can manually set the front face
only option. A better non-attenuating way to cull such vertices can be
added later.

Also flatten brush should calculate the flatten plane from the original
vertices or the flattening will not converge for planes offsets
different than zero.

Reported by Michalis Zissiou, thanks!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60155 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#36444] view3d.viewnumpad operator should not animate

when running viewport operations with exec() rather then invoke(), perform the action immediately rather then using smoothview.
makes viewport operations usable from python scripts.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60156 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#36537] "Grid Floor Scaling" can have some unexpected behaviour on new objects

curves and metaballs now behave the same as meshes wrt grid scaling.
remove WM_operator_view3d_distance_invoke(), and replace with a function called from exec which initializes defaults, this way operators can have their own invoke functions.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60157 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#36291] Applying subsurf to mesh or setting subdivisions to zero crashes Blender

issue was mesh somehow had a mismatch of UV/texpoly layers. we may want to allow this in the future but for now sync on load just in case.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60158 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#36732] Auto depth feature misbehaves on orbit with mouse cursor outside the model.

ortho mode didn't store the depth for re-use when the cursor had no depth.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60159 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #36734 Matcap displays solid black.
GLSL typo in r60151 caused this.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60160 954f8c5b-7b00-dc11-b283-0030488c597c
Install_deps.sh updates:
* Raise OpenCOLLADA version to 18da7f4109a8eafaa290a33f5550501cc4c8bae8 as requested by Gaia.
* Made OSL build/install ON by default (no more an experimental feature!).
* Use default LLVM version under Debian (specifying a version does not work with OSL when you have more that one installed :( ).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60162 954f8c5b-7b00-dc11-b283-0030488c597c
Fix issue with paint cursor overlay and size pressure drawing, it would
draw incorrectly and leave openGL in an inconsistent state, making for a
quite surreal UI. Reported by Sebastian Koenig thanks!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60163 954f8c5b-7b00-dc11-b283-0030488c597c
partial bugfix: [#36501] Blenderplayer can not change video resolution in Mac OSX
OSX support for native desktop resolution changing is not simple as for Windows or Linux.

The 'fix' here is at the interface level only.
Refer to the original bug report for the suggested native workaround, test patch and problems.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60165 954f8c5b-7b00-dc11-b283-0030488c597c
Making install_deps.sh correctly see hyperthreading


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60166 954f8c5b-7b00-dc11-b283-0030488c597c
Add --required-numpy to force compilation of both py3.3 and numpy1.7 in case you really need numpy and 1.7 is not available!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60167 954f8c5b-7b00-dc11-b283-0030488c597c
bugfix [#36736] You can still transform objects while navigating view

Bug was in maya preset.
view3d.manipulator was defined twice, and it was taken precedent over view3d.rotate

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60168 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles / Hair:
* Hair rendering is now a supported feature, no further need to change the feature set to "Experimental". 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60169 954f8c5b-7b00-dc11-b283-0030488c597c
Code cleanup / Cycles:
* Avoid some duplicated code for switch/case in the Attribute code. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60170 954f8c5b-7b00-dc11-b283-0030488c597c
Grrr, forgot to update getopt command for updated args...

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60171 954f8c5b-7b00-dc11-b283-0030488c597c
Fix [#36742] Pasting image into text editor causes freeze

Last fallback (XCLIB_XCOUT_FALLBACK_TEXT) was not checked, hence infinitly looping...

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