Fix for [#34913] Freestyle: Problem w/ Edge Marks combined w/ Collision.

Freestyle edge marks were messed up with Collision and other physics mesh modifiers.
The issue was due to copied Vlak instances without resetting edge marks to proper values.

Also made minor changes for avoiding unnecessary hash table lookups, and added an
assertion to check potential buffer overrun.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56031 954f8c5b-7b00-dc11-b283-0030488c597c
BGE: Adding mipmapping control to bge.render via bge.render.setMipmapping() and bge.render.getMipmapping().

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56032 954f8c5b-7b00-dc11-b283-0030488c597c
modify snapObjectsRayEx() to use a pointer to 'ray_dist' rather then passing the dist, this is to better support multiple calls to ray-cast where only closer distances are accepted. 


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@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/blender@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/blender@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/blender@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/blender@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/blender@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/blender@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/blender@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/blender@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/blender@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/blender@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/blender@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/blender@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/blender@56051 954f8c5b-7b00-dc11-b283-0030488c597c