Fix #33809: Wrong exposure affect after alpha premul changes

Exposure shouldn't affect on alpha channel, only RGB shall be
affected by exposure.

Was a regression since recent alpha premul pipeline changes.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53667 954f8c5b-7b00-dc11-b283-0030488c597c
Style cleanup in OCIO area

Also fixed typo in function name.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53668 954f8c5b-7b00-dc11-b283-0030488c597c
drawing texture icon was multiplying the red channel by alpha, this is almost certainly a typo/accident.


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53671 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#33806] weight paint crash and computer freeze when painting

clear weight paint runtime data on file-load.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53673 954f8c5b-7b00-dc11-b283-0030488c597c
add RNA_def_struct_ptr(...) to use for runtime struct registration, saves over 2000 string lookups on startup and gives overall ~10% speedup for starting blender on my system.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53674 954f8c5b-7b00-dc11-b283-0030488c597c
avoid having dangling panel pointers in the interface, unregistering addons could leave the interface pointing to freed memory.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53675 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #33796: Curve radius makes affect only in full fill mode

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53676 954f8c5b-7b00-dc11-b283-0030488c597c
reduce the alpha of console selection (text was too hard to read)


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

With the good help from googling, here's code that compiles for
10.6 natively. Will check on 10.7 and 10.8 right after commit.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53678 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#33808] custom property write RNA_pointer_get: xxx.xxxx not found in the console
message was harmless but annoying.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53679 954f8c5b-7b00-dc11-b283-0030488c597c
remove uiPanelClearType(), instead redraw all windows when registering/unregistering.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53680 954f8c5b-7b00-dc11-b283-0030488c597c
partial fix for [#32581] Mesh properties API does not allow for zeros in byte array

bmesh access allows zero bytes, support still needs adding via RNA.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53681 954f8c5b-7b00-dc11-b283-0030488c597c
Remove glibc27 from buildbot scripts

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53682 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #33815: blender internal crash rendering material pass with strands.

Patch from Sergey with modifications.

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

Blender's data link button (typically with menu and searching options)
now has a X icon to clear its contents. 

Before you had to click, delete text, enter.

For example:
- Object Parent
- Modifier objects or vertexgroups

This fix saves each user 100 clicks per day, with 100k users
that's 3 billion clicks per year!




git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53684 954f8c5b-7b00-dc11-b283-0030488c597c
Make the node.parent property editable in RNA, so frame hierarchy can be changed by scripts without resorting to operator hacks.

Performs sanity checks internally to make sure that
a) Only frames are used as parents. In future other nodes may be used for parenting, that will require more sophisticated poll functions.
b) Avoid infinite recursion. If the supposed parent is already attached to a frame node the parent assignment will be ignored.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53685 954f8c5b-7b00-dc11-b283-0030488c597c
Small fix for r53685: Allow setting NULL/None as parent, i.e. detach a node from a frame.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53686 954f8c5b-7b00-dc11-b283-0030488c597c
speedup for editmesh getVert and getEdge, were doing 2x customdata layer lookups for crease and bevel weight, also make use of the existing meshdata array for lookups.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53687 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles: multiple importance sampling for lamps, which helps reduce noise for
big lamps and sharp glossy reflections. This was already supported for mesh
lights and the background, so lamps should do it too.

This is not for free and it's a bit slower than I hoped even though there is
no extra BVH ray intersection. I'll try to optimize it more later.

* Area lights look a bit different now, they had the wrong shape before.
* Also fixes a sampling issue in the non-progressive integrator.
* Only enabled for the CPU, will test on the GPU later.
* An option to disable this will be added for situations where it does not help.

Same time comparison before/after:
http://www.pasteall.org/pic/show.php?id=43313
http://www.pasteall.org/pic/show.php?id=43314

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