bmesh operators: use operator type-flag to specify which operations require normal-calculations and which operations require selection flushing.
eg, no need to flush selection after 'Smooth' tool, no need to recalculate normals after 'Select Similar'.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56035 954f8c5b-7b00-dc11-b283-0030488c597c
use UNLIKELY macro for frequently called inline bli math functions.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56036 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for #34910, NodeGroup input/output sliders bug. Initially i thought this was a limitation of the "only 1 list per panel supported" type, but this has since been fixed. Lists just need an additional identifier to distinguish lists in the same panel, thanks to Bastien Montagne for the uiList overhaul!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56037 954f8c5b-7b00-dc11-b283-0030488c597c
minor speedup to BM_mesh_normals_update()


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56038 954f8c5b-7b00-dc11-b283-0030488c597c
Node Socket UI:
* Fix for Min/Max labels, they started with a lower-case character. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56039 954f8c5b-7b00-dc11-b283-0030488c597c
Node Toolbar:
* Use column() layout, this way it uses a bit less space.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56040 954f8c5b-7b00-dc11-b283-0030488c597c
Shader nodes / order:
* Have all "Info" nodes next to each other. 
* Moved "Material Output" to the top.
* Have all light shaders (Emission, Background, AO) next to each other. 

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

Robustness: Avoid translating the stencil outside the active area. Helps
to avoid losing the stencil somewhere in bitspace.

Usability: Take image repeat mapping and scaling into account when
fitting stencil aspect. Togglable by operator properties.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56042 954f8c5b-7b00-dc11-b283-0030488c597c
fix for tangent curve flipping only doing 2d angle tests.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56043 954f8c5b-7b00-dc11-b283-0030488c597c
correct pyapi function intersect_line_sphere_2d() using 3d vecs when only 2d are needed.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56044 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: minor changes, clang checker option for exact size matches and use vector functions.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56045 954f8c5b-7b00-dc11-b283-0030488c597c
== FFMPEG / Canon DSLR footage workaround ==

The latest ffmpeg versions include a workaround to deal with a certain
pecularity in Canon DSLR footage: instead of decoding pictures with the
proper resolution of 1920x1080 they decode it with 1920x1088 and add a
black bar at the bottom.

Needless to say, that this screws up things in a lot of areas within blender
(proxy indices, mask animations etc.)

Since all blender versions besides Linux x86 32bit seem still to include
older ffmpeg versions which still contain this bug, this patch adds
a workaround for older versions until we have all versions on all platforms
up to date.

See also: http://git.libav.org/?p=libav.git;a=commit;h=30f515091c323da59c0f1b533703dedca2f4b95d



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56046 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for r55961 which revered texture icons fix at r55499

Reported by Antony Riakiotakis, thanks!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56047 954f8c5b-7b00-dc11-b283-0030488c597c
edits to startup.blend
- temp dir /tmp\ --> /tmp/
- set sequencer cache limit from 128 --> 1024
- set sequencer view to RGB --> RGBA


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56048 954f8c5b-7b00-dc11-b283-0030488c597c
Freestyle stroke rendering is now done before lens flare.  Suggested by Ton on IRC.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56049 954f8c5b-7b00-dc11-b283-0030488c597c
BGE: Cleaning up BL_ShapeDeformer's use of Blender's Key. This also fixes a bug with replicas (added objects) crashing when using shape keys.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56050 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles / Non-Progressive integrator:
* Subsurface samples were not taken into account for the Sobol directions table. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56051 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles: optimization for 3D viewport border render with heavy scenes, the OpenGL
render of objects could slow things down when redrawing the view each time a new
sample is displayed.

Now it does a partial redraw of the viewport with only the render border area,
skipping OpenGL object drawing while the render is refining.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56052 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for bundle adjusting with motion restricted

This commit bundles new libmv version from own branch
which brings fix for wrong parameter block used for
modal solver parameterization.

Fixes #34985: Crash with Motion tracker (Tripod Motion)

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56053 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: minor BMESH_TODO's, some were left in even though they were done/invalid. 


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