Adding weightpaint transfer tool.
From: https://svn.blender.org/svnroot/bf-blender/branches/meshdata_transfer

Bachelor project at Narvik university collage (Norway).
By Ove M Henriksen (Cyborgmuppet)
 
Thesis will be published at Cyborgmuppets blender page.

Thanks for letting me participate!


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51222 954f8c5b-7b00-dc11-b283-0030488c597c
remove pycache dir. commit by accident


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


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51225 954f8c5b-7b00-dc11-b283-0030488c597c
Bugfix [#32677] Cloth Pinning Does Not Obey Weight Map

Problem occured when having more than one weight map available.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51226 954f8c5b-7b00-dc11-b283-0030488c597c
Bugfix [#32703] elbeem's isSimworldOk() will never return FALSE

Fixed as suggested by Campbell, thank you!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51227 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51228 954f8c5b-7b00-dc11-b283-0030488c597c
Fix cycles task manager calling pthread_join() twice. I haven't seen any bugs
from this but best to fix anyway as it causes undefined behavior. Pointed out
on irc by dslammu, thanks!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51229 954f8c5b-7b00-dc11-b283-0030488c597c
Fixed wrong preset settings for motion tracking

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51230 954f8c5b-7b00-dc11-b283-0030488c597c
Generalization of node dependency sorting, avoid using the sock->link pointer. This pointer only works for sockets that follow the standard 1-to-n connectivity (an output can be linked to multiple inputs, an input can only have one connection). Future node trees may implement 1-to-1 or n-to-1 linking.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51231 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles: camera motion blur enabled.

Still more work needed to get object motion blur ready.

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

Move smart stitch drawing code inside a draw callback and use
ED_region_draw_cb_activate instead of explicitly checking for this
specific operator in the main uv drawing function.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51234 954f8c5b-7b00-dc11-b283-0030488c597c
transfer weight's now operates on selected vertices (when vertex select is enabled).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51236 954f8c5b-7b00-dc11-b283-0030488c597c
refactor screen foreach functions to accept float[2] arguments rather then int pairs.
overall means less converting between float and int (and short in some cases).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51237 954f8c5b-7b00-dc11-b283-0030488c597c
object center selection now uses floats, also fix own error in circle selection in recent refactor.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51238 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: split `foreach` object data iterator functions out of drawobject.c (since they are used for selection too), into their own file: object_iterators.c


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51239 954f8c5b-7b00-dc11-b283-0030488c597c
refactor foreachScreen functions for clipping, now the projection clipping flag is passed down directly rather then converting the enum into a flag, also fix own recent crash lasso seleting in object mode with pose objects.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51240 954f8c5b-7b00-dc11-b283-0030488c597c
use __restrict for string functions args so the compiler can assume they dont overlap.
also avoid comparing int/size_t in for loops.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51241 954f8c5b-7b00-dc11-b283-0030488c597c
Color Management: fixed color management-less texture rendering

There was a missing check for whether color management enabled or not when
converting byte textures to linear space.

This commit also fixes wrong texture preview rendering, which was applying
sRGB transform twice, making procedural textures bright. This will make
float textures being previewed dark (in a linear space) but that's how it
used to behave in pre-OCIO color management.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51242 954f8c5b-7b00-dc11-b283-0030488c597c
Cosmetic: Changed label of the 'Install Addon...' Button to 'Install from File...'

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