py api: BMesh.from_object() was using the derivedFinal, which isn't always available - or may not have UV data if in the wireframe view.

update the function to calculate the derived mesh with bmesh data-mask each time.

resolves bug [#33205] Bmesh "from_object" gives "no usable mesh data".

also found 'mesh_build_data' could run with non mesh objects and fail silently - add an assert.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52416 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #33158: motion vector pass wrong in cycles in some scenes, wrong vectors
due to float precision problem in matrix inverse.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52417 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles bugfix: AUTO wasn't working for Equisolid Fisheye lens
Now one no longer needs to match the sensor dimensions with the render dimensions manually.

IMPORTANT NOTE: if you were using AUTO before with mismathing sensor aspect ratio (comparing to the render dimensions)
this will change your render! We can doversion this, but apart from Tube project I don't know if anyone else
is using this yet (part due to this bug and the only recently fixed 3dview preview aspect ratio).

That should help more artists to take advantage of this fantastic Blender feature.
It still helps to know the parameters of kwnown cameras/lens though.
For example:

Nikon DX2S with a 10.5mm fisheye can be set with:
Render resolution: 4288 x 2848
Sensor 23.7 x 15.70 (15.70 can be ommitted if AUTO is used as fit method)

Note: some cameras render different sizes according to the recording mode.
For example, a Red Scarlet in 5k (@12 fps) can render a full circular fisheye with a sigma 4.5 lens.
The same camera in the 30fps recording mode renders 4k in a cropped circular image.
So it's not only the resolution that changes, but the actual sensor been used.

So just keep in mind that the more information you have from the camera/lens you want to emulate the better.
Bug found at/patch written as a follow up of the BlenderPRO2012, patch reviewed by Brecht Van Lommel


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52418 954f8c5b-7b00-dc11-b283-0030488c597c
Change edge loop select and edge ring select to be consistent with
other selection operators.  Instead of having only a single "extend"
option which causes the selection to toggle, there are now
three options:
- extend: adds to selection
- deselect: removes from selection
- toggle: toggles the selection

The default keymap is adjusted to have identical behavior as before,
using these new options, so end-users shouldn't experience any
difference.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52419 954f8c5b-7b00-dc11-b283-0030488c597c
py api cleanup, replace use...
- PyLong_FromSsize_t --> PyLong_FromLong
- PyLong_AsSsize_t --> PyLong_AsLong

In all places except for those where python api expects PySsize_t (index lookups mainly).

- use PyBool_FromLong in a few areas of the BGE.
- fix incorrect assumption in the BGE that PySequence_Check() means PySequence_Fast_ functions can be used.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52420 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #33241: can't exit edit mode when object gets hidden via animation.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52421 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for #33250: animation player shortcut keys not working on OS X.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52422 954f8c5b-7b00-dc11-b283-0030488c597c
scripts to report missing py reference api docs. (simple RST parse and compare with python)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52423 954f8c5b-7b00-dc11-b283-0030488c597c
doc corrections and add bge.types.KX_ArmatureSensor


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52424 954f8c5b-7b00-dc11-b283-0030488c597c
More LLVM work (now always search llvm-config into LLVM_DIRECTORY when
set!).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52425 954f8c5b-7b00-dc11-b283-0030488c597c
changes to startup.blend
- Set render tile size to 64x64 pixels
- Set default lamp area size to 0.1 (see commit 52012)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52426 954f8c5b-7b00-dc11-b283-0030488c597c
Bring SUSE target to the same level as others.

Also add compile_LLVM func, needed by openSuse (which llvm package is
completly broken), and probably can help for OSL in Fedora17 too (will test soon).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52427 954f8c5b-7b00-dc11-b283-0030488c597c
Grumph, forgot to uncomment some lines before committing last time :/

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52428 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for debug assert failure with Reroute nodes in compositor. After redirecting links from the reroute output the input must be completely unlinked, otherwise the debug_check_node_connections will complain (this is a sanity check that ensures all the original Nodes have been fully reconnected to Operations).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52429 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #33253: VSE preview doesn't display compositor

There were two issues in scene strip rendering:

- It will skip rendering if scene doesn't have camera but uses compositor
- G.is_break will cancel preview rendering

Also removed Use Sequencer from scene's strip settings, it's not supported.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52430 954f8c5b-7b00-dc11-b283-0030488c597c
Prevent division by zero in tiles size versioning code when mixing
using current trunk and previous release.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52431 954f8c5b-7b00-dc11-b283-0030488c597c
When the File Output node exits early in convertToOperations (in case not rendering), it should still unlink all inputs to avoid debug assert failure that checks for remaining Node connections (debug_check_node_connections).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52432 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #33252: VSE preview displays wrong color space

Early output was not setting image buffer float color space

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52433 954f8c5b-7b00-dc11-b283-0030488c597c
fix for re->partx/re->party values being different for RE_Database_FromScene() then the main render loop.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52434 954f8c5b-7b00-dc11-b283-0030488c597c
revert r52399, fix for [#33217], will look into a different fix


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