Use threaded cost function and jacobian computation
Also made it theraded linear solver, seems it makes
sense for iterative schur with inner iterations
enabled.

Use OpenMO's max therads called from bundler code
to detect how many threads to use. Could be changed
in a way that number of threads is passing in options
from blender side in the future.

Also removed redundant V3D definition from compiler's
flags.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54886 954f8c5b-7b00-dc11-b283-0030488c597c
Dependency Graph: refactoring to move private functions to the private header,
and add more documentation about the public functions. Also removed unused graph
traversal code and other minor unused functions.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54887 954f8c5b-7b00-dc11-b283-0030488c597c
Add: [#34443] Ability to set 'Pivot Center for rotation/scale' missing in weight paint mode

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54888 954f8c5b-7b00-dc11-b283-0030488c597c
Fix build error in depsgraph refactoring commit.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54889 954f8c5b-7b00-dc11-b283-0030488c597c
Fix various warnings with clang build, and adjust cmake clang warnings flags
to include a few more that gcc is using too.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54890 954f8c5b-7b00-dc11-b283-0030488c597c
Fix [#34455] Origin to Center of Mass is missing in menu Object > Transform

Just adding the needed py line.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54891 954f8c5b-7b00-dc11-b283-0030488c597c
add PHY headers to cmake's ketsji (else some IDE's won't show)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54892 954f8c5b-7b00-dc11-b283-0030488c597c
Grmlll... *Always* check before commit, even on such simple things! (Fix for own mistake in previous commit).

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

This fixes the placement code of new files added to the sequencer timeline.

The old code tried to guess the strip position from the current mouse
pointer position.

Annoying effect: if you add a new strip using the menu, especially if the
file editor pops up, the strip ends up in nowheres land (most likely around
track 40, frame -200).

New behaviour: strips are always placed at cfra, which is the
sequencer equivalent to the 3D cursor (and that's where new objects in 
3D editing end up).

Bonus feature: we try our best to guess the right track by finding the
nearest strip by type.

The patch was inspired by 
[#32766] VSE: Add Strip on Current Frame

Thanks to venomgfx for the idea!



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


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54896 954f8c5b-7b00-dc11-b283-0030488c597c
make sure objects dragged into the viewport are not hidden.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54897 954f8c5b-7b00-dc11-b283-0030488c597c
enable grabbing for 2d view zooming, good for the graph editor.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54898 954f8c5b-7b00-dc11-b283-0030488c597c
fix for own regression - joining meshes didn't merge customdata flags (could loose crease/bevel weights).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54899 954f8c5b-7b00-dc11-b283-0030488c597c
fix for own regression, edge path tagging worked but toggline bevel didnt.
reported as bug [#34449]


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54900 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #34439: Strip modifier - Mask multiply failure

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54901 954f8c5b-7b00-dc11-b283-0030488c597c
changing image dropping into the viewport to add empty objects (from r54825) wasnt such a popular move,
reinstate old behavior, holding Ctrl now adds empty objects instead.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54902 954f8c5b-7b00-dc11-b283-0030488c597c
minor changes to outliner
- linking groups into a scene now uses the objects original layers (some users have the layers set to useful values, so overwriting isnt so nice).
- dropping objects into the 3d view would make them active but not selected, a valid but confusing state, since most tools activate and select now objects.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54903 954f8c5b-7b00-dc11-b283-0030488c597c
Added RGBA|RGB channels toggle to sequencer preview

Main purpose of this is to be more compatible with older
versions of blender (before alpha cleanup) where sequencer
used to display premultiplied image on an straight opengl
viewport.

Now sequencer preview would behave closer to image editor
However adding Alpha and R|G|B displays is not so simple
because sequencer is using 2D textures. Would be nice to
implement this options as well, but this is not so much
important IMO.

This hall fix
- #34453: VSE: Subtract function does not work properly

TODO: Make RGBA display default for our startup.blend

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54904 954f8c5b-7b00-dc11-b283-0030488c597c
fix for error with drag toggle which showed up with overlapping regions.


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