Fix #31780, cycles nested group rendering broken. Was using the dupli object 'index' member to identify dupli objects, but this is not unique and in fact just 0 in most cases. Needs to use a simple dupli list counter instead.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47816 954f8c5b-7b00-dc11-b283-0030488c597c
tint non-active mask layers grey


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47817 954f8c5b-7b00-dc11-b283-0030488c597c
mango request
- highlight active mask layers.
- remove keyframes when all layer data is removed.


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47819 954f8c5b-7b00-dc11-b283-0030488c597c
always use bicubic sampler for the scale node with the new compositor since it worked like this in the old compositor.

this ignores the sampler passed and could be done in a nicer way so left this as an ifdef so it can be easily redone.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47821 954f8c5b-7b00-dc11-b283-0030488c597c
Fix cycles object_flag array being allocated too big.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47822 954f8c5b-7b00-dc11-b283-0030488c597c
Fix cycles crash when viewport camera border goes out of view.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47823 954f8c5b-7b00-dc11-b283-0030488c597c
update themes for new colors, patch by Brendon Murphy


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47824 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles: first step for implementation of non-progressive sampler that handles
direct and indirect lighting differently. Rather than picking one light for each
point on the path, it now loops over all lights for direct lighting. For indirect
lighting it still picks a random light each time.

It gives control over the number of AA samples, and the number of Diffuse, Glossy,
Transmission, AO, Mesh Light, Background and Lamp samples for each AA sample.

This helps tuning render performance/noise and tends to give less noise for renders
dominated by direct lighting.

This sampling mode only works on the CPU, and still needs proper tile rendering
to show progress (will follow tommorrow or so), because each AA sample can be quite
slow now and so the delay between each update wil be too long.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47825 954f8c5b-7b00-dc11-b283-0030488c597c
 * optimized threading
 * break out with glare node
 * Added OpenCL kernels compatible with AMD still need some testing.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47826 954f8c5b-7b00-dc11-b283-0030488c597c
framing options for camera background image: stretch/fit/crop


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47827 954f8c5b-7b00-dc11-b283-0030488c597c
apply offset to the camera view - this works exactly like camera shift (transforms X/Y in the same space).


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47829 954f8c5b-7b00-dc11-b283-0030488c597c
fix for incorrectly checking for break in r47826


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47830 954f8c5b-7b00-dc11-b283-0030488c597c
added mask tool to recalculate handles (Ctrl+N)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47831 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles:
* UI Tooltip fix. 

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


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47836 954f8c5b-7b00-dc11-b283-0030488c597c
add rgb_to_luma_y(), was being done inline in many places.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@47837 954f8c5b-7b00-dc11-b283-0030488c597c
move one line color conversion functions to be inline.


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