Cleanup / Cycles: Remove unused defines and some other minor changes.
BMesh: Add BM_vert_pair_share_face_check

Use to assert if BM_vert_splice is used incorrectly
BMesh: use compiler attributes for queries, structure
Cleanup: dead code
Follow-up to code cleanup in rB415af0b: Keep compound terms as they are.
bmesh py api: BPY_BM_CHECK_SOURCE_* macro now accepts multiple args
bmesh py api: add bmesh.utils.vert_splice(...)
Add thousands separators to scene stats (D646)

by januz with own modifications
Correct previous commit - space crept in patch
Correct error in recelty added BM_face_split_edgenet

Was copying UV's to unrelated faces
Fix for bmesh_vert_separate adding to visithash multiple times
Use compiler attributes for more BLI libs
Fix T34664: bevel face material can be set in tool and modifier.

Now the bevel tool, modifier, and internal operator have a material
slot # parameter that the user can set. If left at default of -1,
behavior is as current -- bevel face material is taken from the
closest original face (this may be ambiguous). If material slot
is >= 0, it gives the material slot index number for the material
to use.
BGE: rtsp support for VideoTexture (video streaming)

In collaboration with Benoit Bolsee (mainly doing it under his
directions).

Note: FFmpeg lib needs to be compiled with rtsp support for this to
work.

Bug 1/2 of T41004
Bake-API: progress (bar) working

Note: This makes no change to the user, the render engine (Cycles) still
need to update the progress during baking. But this is the Blender side
of this.
Add helper to validate (and fix) material indices of meshes' polygons, curves' splines and texts' letters.

Useful especially for importer addons.

Reviewers: campbellbarton

Reviewed By: campbellbarton

Differential Revision: https://developer.blender.org/D650
Fix T41113: Hide doesn't work on particle systems

Particles could completely cancel Hide flag! 'Accumulative' bool is not a really good idea here,
hide (or render-hide) are some kind of 'absolute' no-go.

Found another issue in that area, duplicated objects would still show in 'render override' mode,
when object was render-disabled.

Hopefully things are better now.
Fix a BI bug: when an object had dupliobjects children, it was never rendered at all,
even if having particle systems.

This was not matching behavior of Cycles and 3DView!
Fix -1 passed as bool
Code cleanup