scanfill curves, ngons, masks had their own memarena code and would allocate a new one for every fill.
now use BLI_memarena and support passing the arena into the fill function, so the arena is re-used, when scanfill is called in a loop.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59583 954f8c5b-7b00-dc11-b283-0030488c597c
remove callback BLI_localErrorCallBack from scanfill, was here for years and only ever wrapped printf.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59584 954f8c5b-7b00-dc11-b283-0030488c597c
warn when applying transformation does nothing, confusion pointed out in [#36583]


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59585 954f8c5b-7b00-dc11-b283-0030488c597c
cmake: set python, llvm and osl libs as advanced.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59586 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for #36387, User Preferences "Addons" panel bogs down the whole interface.
The addons panel draw function calls addon_utils.modules() which in turn retrieves a list of fake modules from the script paths every time. This can become costly when network paths are included for
addons. Solution is to put the scanning process into a dedicated "refresh" function and disable it in frequently called draw and filter functions, i.e. in these cases the cached addons_fake_modules list
will be used instead.

Note that this may lead to invalid addon lists if script paths are changed (which is not working 100% without restart anyway according to Campbell). For this there is now a "Refresh" operator button in
the addons preferences. If necessary and feasible such forced refreshes can be added later too.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59588 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #36584, in python inputs/outputs of created node group not accessable by their names.
The lookupstring function for node sockets and node tree interface items was using the identifier strings of bNodeSocket. This would ensure uniqueness, but doesn't work nicely because the identifier is
not the RNA name property and differs for node groups (with regular nodes it only differs if socket names are duplicate).

Now removed the specialized callbacks, so that inputs/outputs collections simply use the name property. In cases where socket names are duplicate (e.g. math node "Value" + "Value") only the first socket
is returned, but in such cases access by index is the preferred method anyway.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59589 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for #36589 Node Editor displays incorrect Material name when Pinning.
The material button displayed in the node editor header is the "active_material" of the active object. When pinning the node tree this should ideally be the pinned node tree's material slot, but this
would require adding even more confusing info in SpaceNode to find the correct slot in addition to the id_from datablock. Solution for now is to just disable these buttons when pinning to communicate
better.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59590 954f8c5b-7b00-dc11-b283-0030488c597c
include slop-space in debug statistics (gcc/clang only)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59593 954f8c5b-7b00-dc11-b283-0030488c597c
should fix builds for osx


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59597 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles / Sky Texture:
* Added a new sky model by Hosek and Wilkie: "An Analytic Model for Full Spectral Sky-Dome Radiance" http://cgg.mff.cuni.cz/projects/SkylightModelling/ 

Example render:
http://archive.dingto.org/2013/blender/code/new_sky_model.png
Documentation:
http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/Textures#Sky_Texture

Details:
* User can choose between the older Preetham and the new Hosek / Wilkie model via a dropdown. For older files, backwards compatibility is preserved. When we add a new Sky texture, it defaults to the new model though. 
* For the new model, you can specify the ground albedo (see documentation for details). 
* Turbidity now has a UI soft range between 1 and 10, higher values (up to 30) are still possible, but can result in weird colors or black. 
* Removed the limitation of 1 sky texture per SVM stack. (Patch by Lukas Tönne, thanks!)

Thanks to Brecht for code review and some help! 

This is part of my GSoC 2013 project, SVN merge of r59214, r59220, r59251 and r59601.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59603 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles / OpenCL:
* Some fixes for OpenCL, was broken after recent changes. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59604 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles: change Gaussian subsurface scattering falloff to be more similar to
the Cubic falloff, see here for details.
http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/Shaders#Subsurface_Scattering

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59610 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #36555: preview render in properties editor did not get cancelled and
restarted fast enough on resizing the editor, especially noticeable with
e.g. luxrender which does a progressive refining render.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59611 954f8c5b-7b00-dc11-b283-0030488c597c
Some tweaking to uiList dragsize, to make it more reactive to very quick moves.

Note that, even though not officialy supporting non-UI_UNIT_Y height items (other point like scrollbar size would faill too), we try to maintain a not-that-bad behavior in this case, which implies a bit of black magic (esp. as our ref point is the bottom of the list, which moves when it is resized :/)...

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