add NULL checks in eyedropper_color_sample_fl since BKE_area_find_region_type may not find a region.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@58758 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: remove redundant NULL checks


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@58759 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #36267, part 1 of 2: fix for reroute node type updates. The reroute nodes change their socket type based on what they are connected to, to work as pass-through nodes with as little conversion as
necessary.

Problem was/is that the nodes can set the 'type' property, but in order to actually change the data type they would also need to update the typeinfo pointer (and idname), which is strongly discouraged.
Solution is to just replace the input/output sockets of the reroute node with new sockets of the desired type and port all links over.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@58763 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #36267 part 2 of 2: Fix for reroute node values in old shader node stack system. They were overwriting stack values from their input nodes, because the system would not detect that these sockets
actually just point to existing defined stack values. To make the link check work, set the socket->link pointer if internal node connections exist, this works for both muted and reroute nodes.

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

Clean up inconsistencies in the libmv C API:
- All type identifiers are libmv_TypeName
- All function identifiers libmv_functionName
- Prefer libmv_nounVerb function names (e.g. libmv_featuresDestroy)
- Match Blender code formatting rather than Google
- Spelling corrections

Code review: https://codereview.appspot.com/11494044/


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@58765 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles / Ray Depth:
* Added a Ray Depth output to the Light Path node, which gives the user access to the current bounce.
This can be used to limit the maximum ray bounce on a per shader basis. Another use case is to restrict light influence with this, to have a lamp only contribute to the direct lighting. 

http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/More#Light_Path

This is part of my GSoC 2013 project. SVN merge of r58091 and r58772 from soc-2013-dingto. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@58776 954f8c5b-7b00-dc11-b283-0030488c597c
fix for BLI_ghash_clear from Sv. Lockal (lockal)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@58779 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles / Blackbody to RGB node:
* Added a node to convert a temperature in Kelvin to an RGB color. This can be used e.g. for lights, to easily find the right color temperature. 
= Some common temperatures =
Candle light: 1500 Kelvin
Sunset/Sunrise: 1850 Kelvin
Studio lamps: 3200 Kelvin
Horizon daylight: 5000 Kelvin

Documentation: http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/More#Blackbody

Thanks to Philipp Oeser (lichtwerk), who essentially contributed to this with a patch! :)

This is part of my GSoC 2013 project. SVN merge of r57424, r57487, r57507, r57525, r58253 and r58774

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@58780 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles / Vector Transform node:
* Add a note to convert a Vector, Point or Normal between World <=> Camera <=> Object coordinate space. 

Documentation: http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/More#Vector_Transform

Part of my GSoC 2013 project, SVN merge of r57599, r57670, r57918, r57919, r58245 and r58775.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@58781 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles / HSV Separator and Combine node:
* Added nodes to separate and combine hsv colors.

Part of my GSoC 2013 project, SVN merge of r57981. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@58782 954f8c5b-7b00-dc11-b283-0030488c597c
remove unused headers and NULL check


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@58783 954f8c5b-7b00-dc11-b283-0030488c597c
Code cleanup, use bools here. Forgot to change that. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@58784 954f8c5b-7b00-dc11-b283-0030488c597c
Fix linking issue, we use bundled static glew so we should define static glew in ghost as well.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@58797 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles / Squared Samples:
* After some feedback decided to remove this option from the Progressive integrator, it only makes sense for Non-Progressive where we have different values for the sample types. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@58798 954f8c5b-7b00-dc11-b283-0030488c597c
Fix [#36265]: Smoke doesn't work if domain object has negative scale.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@58802 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for r58798, forgot to update the presets. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@58803 954f8c5b-7b00-dc11-b283-0030488c597c
Potential fix for wrogn k3 value after solve

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@58804 954f8c5b-7b00-dc11-b283-0030488c597c
Fix a very irritating problem of our stroke system. On small brushes,
the space stroke would be repeated on unneeded subpixel precision. Since
this is not really useful, enforce spacing to be at least one pixel.
This makes small brushes quite more responsive.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@58805 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: remove unused functions
- IsectLLPt2Df
- isect_point_quad_uv_v2
- isect_point_face_uv_v2

These are obsoleted by resolve_tri_uv, resolve_quad_uv

also add attributes for unused function results for some math functions.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@58806 954f8c5b-7b00-dc11-b283-0030488c597c
use bmesh for loop macros for looping over mesh verts/edges/faces


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