Fix build scripts related to PSD support.  Both CMake and SCons builds were broken.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60692 954f8c5b-7b00-dc11-b283-0030488c597c
Code cleanup: remove some unused cycles SSS code.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60693 954f8c5b-7b00-dc11-b283-0030488c597c
Fix crash running Blender in background mode, caused by revision 60633.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60694 954f8c5b-7b00-dc11-b283-0030488c597c
Fix dual quaternion armature deform giving erratic results in some cases. Bug
was encountered in a Kiribati rig file.

The problem was actually in the matrix to quaternion conversion function. One
problem is that it was using the wrong matrix indices in case of an ill defined
matrix trace. Besides that FLT_EPSILON was too small to detect cases where
float precision becomes a problem.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60695 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: use const's for vector args.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60696 954f8c5b-7b00-dc11-b283-0030488c597c
transform - use 2d float's for the viewport center (allows for vector math functions to be used more easily).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60697 954f8c5b-7b00-dc11-b283-0030488c597c
More fixes for PSD support in SCons scirpts...

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60698 954f8c5b-7b00-dc11-b283-0030488c597c
Fix obvious error in expanded enum layout code, given uiname would never be use...

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60700 954f8c5b-7b00-dc11-b283-0030488c597c
Code cleanup: Remove some more unused cycles SSS code, related to the lookup table. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60701 954f8c5b-7b00-dc11-b283-0030488c597c
Followup to own r60700, fix was not correct... In fact, beahivor of expanded enums is not consistent with other properties, as there labels are never shown. Keep it for now, though, as this would break many scripts and ui file, better to do this in bulk!

Thanks to DingTo and plasmasolutions for notifying the issue.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60702 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #37047, Expanded Enum Alignment glitching.
The enum item buttons in the node header change their alignr when switching the tree type, due to different things being shown in the header (this rarely happens in other panels, so it doesn't turn
up easily). The new alignnr needs to be copied to existing block buttons in ui_but_update_from_old_block to ensure the enum items get aligned to each other.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60703 954f8c5b-7b00-dc11-b283-0030488c597c
Add poll function for overlay panel. Thanks to Thomas Dinges for the report!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60704 954f8c5b-7b00-dc11-b283-0030488c597c
Revert both own r60700 and r60702. API behavior for expanded enums is completly inconsistent, but again, better to do such changes (soft-breaking API) in bulk...

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60705 954f8c5b-7b00-dc11-b283-0030488c597c
Revert r60700 for good (sorry for the noise :/ ).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60706 954f8c5b-7b00-dc11-b283-0030488c597c
Further tweak for dual quaternion armature deform problem, tweak the epsilon
value to solve some more cases.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60707 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #37045: blender internal SSS rendering black on some system when the SSS
reflection color was set to 1 1 1. BSSRDF parameter fit not converging properly
due to float precision issues.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60708 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #37002: cycles viewport render shows white on old graphics cards with no
support for non-power-of-two textures.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60709 954f8c5b-7b00-dc11-b283-0030488c597c
Task scheduler ported form CYcles to C

Replaces ThreadedWorker and is gonna to be used
for threaded object update in the future and
some more upcoming changes.

But in general, it's to be used for any task
based subsystem in Blender.

Originally written by Brecht, with some fixes
and tweaks by self.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60710 954f8c5b-7b00-dc11-b283-0030488c597c
Option to overlay mask over the footage

Currently supports only two modes:
- Show alpha channel of the mask
- Multiply footage by the mask, which will give
  you final-looking combined image.

TODO: Currently rasterization happens on every
      redraw, need to cache rasterized mask
      somewhere to make redraw more realtime.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60711 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for prefetch not working correct if last frame was loaded



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