style cleanup


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56156 954f8c5b-7b00-dc11-b283-0030488c597c
simple optimization, replace BM_face_other_edge_loop() with BM_loop_other_edge_loop() in situations where the loop is known this avoids a lookup.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56157 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: remove unused vars in edge slide, only store the initial vertex coords rather then a copy of the whole vertex, name edge slide directions a/b rather then up/dowb.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56158 954f8c5b-7b00-dc11-b283-0030488c597c
fix for incorrect edge loop slide direction when one of the loop sides was lost walking around the loop.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56159 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: edge slide, avoid building BVH tree, more logical var names.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56160 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for bug reported by Dalai Felinto on IRC, crash in blenderplayer after r56055. The ntreeUpdateTree function uses G.main, which is not defined in blenderplayer (NULL). Using G.main is in itself an ugly hack required for the node verification. Just added a sanity check for now.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56161 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#35009] Edge/Vertex Slide issue using G-G.

add support for edge slide on boundary edge loops as well as loops with mixed in boundary faces.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56162 954f8c5b-7b00-dc11-b283-0030488c597c
fix for incorrect edge slide interpolation at loop endpoings with ngons.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56163 954f8c5b-7b00-dc11-b283-0030488c597c
fix for bug where edge slide could set mouse start/end points to the same value - so you couldnt move the edge loop at all,
now check that the screenspace projection of the start/end points have some length and fallback to fixed offset if none do.

also rename confusingly named vars.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56164 954f8c5b-7b00-dc11-b283-0030488c597c
fix for crash in r56063, was just missing an ID property copy (which menu does)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56165 954f8c5b-7b00-dc11-b283-0030488c597c
Py API doc generation: add bpy.app.translations module, and fix a few errors found while building the doc. Thanks to Campbell for review.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56166 954f8c5b-7b00-dc11-b283-0030488c597c
More fix (cleanup) to r56063: remove call to RNA_create_pointer, it has already been called by uiButGetOperatorPtrRNA() if needed.

(I thought it would also copy idproperties, but as it does not...).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56167 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #34818: Sculpting Mode only rotates around geometry origin (bring bug back)

Made it so average coordinate of previous stroke is used as
a viewport rotation center when Rotate Around Selection is
enabled in user preferences.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56168 954f8c5b-7b00-dc11-b283-0030488c597c
Added minimal support for progressbar in python

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

Wrongly replaced a "&" with "|" for a define. That made node headers in node editor
draw too dark. Also made header for default node not use alpha.

In general this drawing is not very good - it gets too transparent and dark.
Needs nicer AA function in interface, will be done later.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56170 954f8c5b-7b00-dc11-b283-0030488c597c
Usual Stupid Blenderplayer Stub Fix™! :P

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56171 954f8c5b-7b00-dc11-b283-0030488c597c
uv project from camera now sets defaults so the image maps to the camera bounds,
also rename newly added `Mesh Debug` -> `Mesh Analysis`


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56172 954f8c5b-7b00-dc11-b283-0030488c597c
style cleanup: edge slide


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56173 954f8c5b-7b00-dc11-b283-0030488c597c
Restore usage of difflib's quick_ratio()... Don't actually know what happens here, my tests with timeit showed it much slower than ratio(), but real-life says the contrary...

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56174 954f8c5b-7b00-dc11-b283-0030488c597c
Bring back support of FFmpeg >= 0.7

After planar codecs support minimal FFmpeg was
bumped to 0.10 which was not so much nice because
it was only released only later last year.

Didn't find a way to make compatibility code local
in ffmpeg_compat, so there're some ifdefs in
audaspace and writeffmpeg.

Not entirely happy, but having a bit of ifdefs in
code better than lots of real PITA for platform
maintainers.

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