patch [#34411] Patch for image drag and drop to create Empty rather than BG image
from Kevin Mackay (yakca)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54825 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for collapse-edges crash in dyntopo

Was incorrectly testing for a vertex in a set with BLI_ghash_lookup
rather than BLI_ghash_haskey; the key in this case is always null so
the test failed.

This could leave the PBVH in an inconsistent state, since the
top-level map of BMesh vertices to PBVH nodes would indicate the
vertex was in a node, but that node wouldn't actually have any faces
using the vertex. That inconsistent state would eventually lead to a
crash in pbvh_bmesh_vert_remove().

Fixes
http://projects.blender.org/tracker/?func=detail&atid=498&aid=34370&group_id=9

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54827 954f8c5b-7b00-dc11-b283-0030488c597c
Hidding the append: already linked message if G.debug is false. This gets rid of some noise in the console for BGE games that run into this case a lot.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54828 954f8c5b-7b00-dc11-b283-0030488c597c
fix for own error r54703, the event->mval was relative to a different region.
also make recent image dnd patch add the new object at the mouse cursor.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54829 954f8c5b-7b00-dc11-b283-0030488c597c
fix for weight paint using values over 1.0 when blending,
since its possible to have a brush strength over 1.0, it was possible to paint weights which would over-shoot the intended weight.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54833 954f8c5b-7b00-dc11-b283-0030488c597c
fix for regression in 'object.shape_key_transfer' operator since BMesh merge, using the RELATIVE_FACE method failed.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54834 954f8c5b-7b00-dc11-b283-0030488c597c
fix for python exception getting the ID from an operator button:
  attempting to select 'Online Manual' or 'Python Reference' from the UI of a running operator would give an error popup.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54835 954f8c5b-7b00-dc11-b283-0030488c597c
BGE: Fixing a crash reported by Ace Dragon on BA. It looks like Object->totcol can give a number higher than the number of materials, so I've added some NULL checks.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54837 954f8c5b-7b00-dc11-b283-0030488c597c
Update bundled version of minilzo

This updates minilzo from version 2.03 to version 2.06 which
is like 3 years newer.

The main reason of this update is that older minilzo had some
strange valgrind warnings. Likely they're harmless, but it was
still annoying to troubleshot bakes with valgrind.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54838 954f8c5b-7b00-dc11-b283-0030488c597c
Upgrade Ceres library to current master which is current 1.5RC

This is helpful because it brings CHOLMOB-free ITERATIVE_SCHUR and
SCHUR_JACOBI which is really nice for new upcoming bundle adjustment.

If also includes all the local fixes we made locally.

There're lots of other improvements/fixed which are not currently
would be so much visible in Blender, but which opens doors for some
great improvements in future.

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

- Moved keyframes and refirement flags into reconstruction options structure
- Moved distortion coefficients and other camera intrinsics into own structure
- Cleaned up reconstruction functions in libmv c-api

---
svn merge -r52853:52854 ^/branches/soc-2011-tomato



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54840 954f8c5b-7b00-dc11-b283-0030488c597c
Synchronize libmv with own branch

Should be no functional changes, just would help a lot
checking on which stuff was/shall be merged from tomato
and which is not.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54841 954f8c5b-7b00-dc11-b283-0030488c597c
Camera tracking: libmv distortion API now also uses camera intrinsics
structure instead of passing all the parameters to every function.

Makes it much easier to tweak distortion model.

---
svn merge -r52854:52855 ^/branches/soc-2011-tomato



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54842 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: remove unused and unsupported functions from libmv-capi

---
svn merge -r52855:52856 ^/branches/soc-2011-tomato



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54843 954f8c5b-7b00-dc11-b283-0030488c597c
In fact, this shall have been a part of previous commit.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54844 954f8c5b-7b00-dc11-b283-0030488c597c
Camera tracking, minor changes:

- Fill in image dimension for camera intrinsics used for
  solution refirement.
- Retrieve K3 from camera intrinsics after refining.

Shall be no functional changes, just makes things clear
and robust for further improvements.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54845 954f8c5b-7b00-dc11-b283-0030488c597c
Update Carve to newest upstream version with some assorted fixes

Perhaps some warnings could be silenced, but not in mood of writing
local patches at this moment. They're all harmless anyway.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54846 954f8c5b-7b00-dc11-b283-0030488c597c
fix for toggle buttons not taking effect on mousedown.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54850 954f8c5b-7b00-dc11-b283-0030488c597c
is_crappy_intel_card() was checking strstr(glGetString(GL_VENDOR), "Intel") every call,
better store in static var.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54851 954f8c5b-7b00-dc11-b283-0030488c597c
Check if the variable is a string and split nicely, so compile command stays intact with proper include options.

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