Cycles:
* Fix some compile errors, when building without Branched Path. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59925 954f8c5b-7b00-dc11-b283-0030488c597c
Changes to Freestyle default parameters:
- The "Same Object" chaining option enabled (see follow-up discussions in Bug #36629).
- Sphere radius set to 0.1 (was 1.0 resulting in a longer computation time).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59926 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles:
* Refactor PathState struct and functions into its own file. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59927 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: warnings and redundant checks.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59928 954f8c5b-7b00-dc11-b283-0030488c597c
screw tool used uninitialized normal to detect flipping direction.

lookes like bug from bmesh merge, restored from 2.4x.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59929 954f8c5b-7b00-dc11-b283-0030488c597c
Code cleanup: Minor function capitalization fix


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59931 954f8c5b-7b00-dc11-b283-0030488c597c
move mesh evaluation functions (normal, mapping, smooth group... etc, calculations) into mesh_evaluate.c.
mesh.c was over 4k lines and complex functions mixed in with general library management.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59935 954f8c5b-7b00-dc11-b283-0030488c597c
remove use of BLI_array in BKE_mesh_mpoly_to_mface(). was over-allocating anyway so just allocate the array once.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59936 954f8c5b-7b00-dc11-b283-0030488c597c
enable strict flags for mesh_evaluate.c


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59937 954f8c5b-7b00-dc11-b283-0030488c597c
correct error in recent changes for building with openmp.
rename DM_OMP_LIMIT to BKE_MESH_OMP_LIMIT and set to 0 when in debug mode, same for BM_OMP_LIMIT.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59938 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #36663, Bone properties sometimes vanish when mousing into properties window.
Active edit bone was cleared from armature after each file save, even though the edit data is not actually freed then. Without the active edit bone the poll functions for bone panels fail.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59939 954f8c5b-7b00-dc11-b283-0030488c597c
Fix own mistake in one of previous commits

Was overriding list's link next/prev after it was
added to the list.

Also, no need to set next/prev to NULL when adding
a link to the list.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59940 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#36685] crash calculating tangent space data on degenerate geometry

the error was that the range check was done on the float before converting to an int.
now convert to and int first and ensure a valid range on that.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59943 954f8c5b-7b00-dc11-b283-0030488c597c
Film response curves implemented as a looks

This commit implement's OCIO's Looks idea which
is about applying some color correction on the
buffer before it get's affected by a display
transform.

This is mainly used to modify images in an
artistics way.

Currently we've got looks generated from film
response curves for all sorts of cameras.

Patch by both of me and Brecht.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59945 954f8c5b-7b00-dc11-b283-0030488c597c
FOllowup for looks commit

Forgot to copy/initialize looks for view transform.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59947 954f8c5b-7b00-dc11-b283-0030488c597c
Enable vertex snapping to bundle positions

This means it's possible now to snap stuff to
reconstructed tracks positions.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59948 954f8c5b-7b00-dc11-b283-0030488c597c
Avoid using "bundle" in condole message print

According to bf-vfx the word "bundle" was confusing
for artists.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59949 954f8c5b-7b00-dc11-b283-0030488c597c
Create/delete keyframe for motion tracks in clip editor

Use I to create a new keyframe, Alt-I to remove the ketframe.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59950 954f8c5b-7b00-dc11-b283-0030488c597c
Fix libmv build error on OS X with Xcode 5.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59951 954f8c5b-7b00-dc11-b283-0030488c597c
Fix OpenCL build error.

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