Fix #36302: Multires baking to zero 0 was showing error but still was baking

We do not support baking to level 0, disabled this completely now.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58752 954f8c5b-7b00-dc11-b283-0030488c597c
Use bool instead of int.

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


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@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/blender@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/blender@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/blender@58798 954f8c5b-7b00-dc11-b283-0030488c597c