style cleanup: pep8


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59394 954f8c5b-7b00-dc11-b283-0030488c597c
move bmesh tools into their own include,
changes to tool args would rebuild far too many files and these are mainly by modifiers outside of bmesh.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59395 954f8c5b-7b00-dc11-b283-0030488c597c
modify closest_to_plane_v3 not to use point-normal form.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59397 954f8c5b-7b00-dc11-b283-0030488c597c
edits to new symmetrize tool
- snap axis-aligned verts to the center.
- expose the threshold for detecting if a vertex is on the axis.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59398 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #36535: Color difference when saving image

Issue was caused by precision loss in alpha under code.
Now it might be slower a bit, but it's as precise as it
could be. At least i hope so :)

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59401 954f8c5b-7b00-dc11-b283-0030488c597c
Tracking Python API improvements

- Solved issue with changing marker's frame number
  for tracks which doesn't belong to camera object.

- Support find_frame, insert_frame and delete_frame
  functions for plane markers.

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

- Collapse plane track panels by default
- Hide 3D markers when in mask edit mode
- Remove alpha from mask layers list

Discussed with Sebastian and Roman.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59406 954f8c5b-7b00-dc11-b283-0030488c597c
set function args in BLI_math_rotation as const where possible.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59408 954f8c5b-7b00-dc11-b283-0030488c597c
optiona for bmesh triangle fill operator to take a normal argument


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59409 954f8c5b-7b00-dc11-b283-0030488c597c
fix for error in recetly added bisect operator, in rare cases it could attempt to remove vertices twice.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59411 954f8c5b-7b00-dc11-b283-0030488c597c
add dissolve option to triangle fill operator, running dissolve after scanfill isn't so simple because of errors if one edge can't merge.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59412 954f8c5b-7b00-dc11-b283-0030488c597c
_another_ fix for recently added bisect operator, looping over mixed geometry could read freed memory when vertices were removed.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59413 954f8c5b-7b00-dc11-b283-0030488c597c
* Compile fix for r59395, 'move bmesh tools into their own include'. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59414 954f8c5b-7b00-dc11-b283-0030488c597c
correct error in recent commit triangle-fill-dissolve, need to check if the edges face is removed (happens in rare cases).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59415 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles / Sampling UI:
* Do not show Total Samples print for Progressive, when Square Samples are disabled. In this case it's obvious even without the print. :)

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59416 954f8c5b-7b00-dc11-b283-0030488c597c
new mesh bisect tool, available in the mesh menu.
cuts the mesh in half based on the cursor location and the viewport,
optionally supports filling the cut area (with uvs. vcols, etc),
and removing geometry on either side of the cut.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59417 954f8c5b-7b00-dc11-b283-0030488c597c
Code cleanup / Cycles:
* Some style tweaks for hair code. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59418 954f8c5b-7b00-dc11-b283-0030488c597c
fix leak in BM_face_split() with multires if the split failed.
also remove redundant normal copy.

only triangulate the mesh if its needed when enabling dyntopo.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59419 954f8c5b-7b00-dc11-b283-0030488c597c
fix error in recently added symmetrize rewrite, verts already on the aligned to the mirror-plane would not be welded.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59420 954f8c5b-7b00-dc11-b283-0030488c597c
new mesh bisect had a problem not selecting faces with fill option in face mode.


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