Some minor UI messages fixes.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54858 954f8c5b-7b00-dc11-b283-0030488c597c
Switch motion tracker bundle adjustment to Ceres.

Patch originally written by me, then finished by Sergey. Big
thanks to Sergey for troopering through and fixing the many issues
with my original (not compilable) patch.

The Ceres implementation uses 2 parameter blocks for each camera
(1 for rotation and 1 for translation), 1 parameter block for
common intrinsics (focal length etc) and 1 parameter block for
each track (e.g. bundle or 3D point).

We turn on some fancy optimizer options to get better performance,
in particular:

  options.preconditioner_type = ceres::SCHUR_JACOBI;
  options.linear_solver_type = ceres::ITERATIVE_SCHUR;
  options.use_inner_iterations = true;
  options.use_nonmonotonic_steps = true;
  options.max_num_iterations = 100;

Special thanks to Sameer Agarwal of Ceres fame for splitting out
the SCHUR_JACOBI preconditioner so that it didn't depend on
CHOLMOD.  Previously we could not use that preconditioner in
Blender because CHOLMOD is too large of a dependency for Blender.

BundleIntrinsicsLogMessage:
- Moved bunch of if(foo) LG << "bar" into this function, to make
  EuclideanBundleCommonIntrinsics a little bit easier to follow.

EuclideanBundle:
- Fix RMSE logging.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54859 954f8c5b-7b00-dc11-b283-0030488c597c
Bye-bye, SSBA!

With new bundle adjustment based on Ceres we don't need
SSBA library anymore. This also means we don't need ldl
library and libmv is no longer depends on colamd as well.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54860 954f8c5b-7b00-dc11-b283-0030488c597c
revert some changes from own commit r54850 which broke undo for toggle buttons, also make toggle buttons auto-key.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54861 954f8c5b-7b00-dc11-b283-0030488c597c
rigidbody: Don't set object to rigid body on dummy transform

Fixes [#34420] rigid objects not resetting original properly after running a simulation.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54862 954f8c5b-7b00-dc11-b283-0030488c597c
add define for drag toggle.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54863 954f8c5b-7b00-dc11-b283-0030488c597c
simplify drag toggle operator, use BLI_rctf_isect_segment between mouse events rather then many calls to ui_but_find_mouse_over().


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54864 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#34423] Foreach_get crash for any non existant attribute
also improve exception messages.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54865 954f8c5b-7b00-dc11-b283-0030488c597c
correction to previous commit with empty collections.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54866 954f8c5b-7b00-dc11-b283-0030488c597c
Fix OS X build error with Quicktime, need <stdio.h> for FILE usage.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54868 954f8c5b-7b00-dc11-b283-0030488c597c
OpenGL: implemenation of fixed function lighting as per pixel GLSL shaders. The
code is still unused, but the intention is to use this to solve the double sided
lighting problem on NVidia, and to make the materials work on OpenGL ES 2.0
eventually.

The code works and matches the fixed function lighting pretty much exactly, but
still needs optimizations. The actual integration in object draw will be
committed later when more fixing & testing, there's lots of different combinations
and unclear OpenGL state here.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54869 954f8c5b-7b00-dc11-b283-0030488c597c
CMake: update cmake.txt documentation to remove some old information and link
to the wiki for detailed cmake build setup instructions.

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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54871 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#34415] Edge slide results in segmentation fault on certain mesh


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54875 954f8c5b-7b00-dc11-b283-0030488c597c
add ctest for keyconfig_utils to check for missing items.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54877 954f8c5b-7b00-dc11-b283-0030488c597c
patch [#34437] Fix text editor bug: ctrl+F is not configurable
in fact the keymap editor was missing other keymaps so added these too,
also updated keymap checker to make sure there is no mismatch with region/space types.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54878 954f8c5b-7b00-dc11-b283-0030488c597c
fix for own regression in win32 from r54225, wrong args used in getAllDisplayDimensions()
caused bug [#34391] Window position not saving correctly for next start-up


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54879 954f8c5b-7b00-dc11-b283-0030488c597c
Camera tracking: switch euclidean intersection code to use Ceres

Would not expect any significant changes in solver behavior, but
it could be more accurate in some cases.

Switching projective intersection to ceres is marked as a TODO
for now.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54880 954f8c5b-7b00-dc11-b283-0030488c597c
Camera tracking: support refining radial K1, K2 only

This commits adds extra refirenment entry in the menu which is
"K1, K2" and which will apparently refine only this distortion
coefficients.

This would be useful in cases when you know for sure focal length
(which could be obtained from lens, EXIF and so) but not sure
about how good you manual calibration is.

Be careful tho, there're no internal constraints on this
coefficients so distortion model could just screw up into insane
values.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54881 954f8c5b-7b00-dc11-b283-0030488c597c
fix own regression since 2.65 [#34438] Solidify crease bug


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