Fix normals around root nodes of skin modifier output.

The direction for these are flipped from other end caps, so add a root
flag to indicate whether the cap polygon's vertex output order should be
reversed.

Fixes bug [#32079] Skin-modifier calculates root's normals wrong
projects.blender.org/tracker/index.php?func=detail&aid=32079&group_id=9&atid=498

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@48848 954f8c5b-7b00-dc11-b283-0030488c597c
Fix crash on creating tooltip for sequencer's gl preview mode

Issue was caused by missed value for this enum, fixed by adding check
in tooltip generation.

Default value for this enum should also be fixed, but that would be
in separated commit.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@48850 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #32082: face textures lost when linking scene from another file

Issue was caused by missing expand for MTexPoly-s tpages.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@48851 954f8c5b-7b00-dc11-b283-0030488c597c
add bli rect funcs BLI_rctf_init_minmax, BLI_rcti_init_minmax


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@48852 954f8c5b-7b00-dc11-b283-0030488c597c
- add a temp var for edge scanfill (fits in 4 bytes alignment - won't increase mem usage)
- make keyindex an unsigned int, since its used to store vertex indices
- use BLI_in_rcti_v for IN_2D_VERT_SCROLL and IN_2D_HORIZ_SCROLL


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@48853 954f8c5b-7b00-dc11-b283-0030488c597c
feather points now align with mask outline when called with same resolution.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@48854 954f8c5b-7b00-dc11-b283-0030488c597c
add bli rect min/max functions.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@48855 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #32050: UV map and game engine property cause crash

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@48856 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #32041: Empty display size is not taken into account for centering view

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@48857 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for metaballs used as dupli-object for particle

It used to be a dependency cycle which lead to incorrect or
missed tesselation on some circumstances.

Seems to be introduced in rev41627.

This commit seems to behaving properly on simple cases,
probably could fail in some other cases, so need to be
checked further.

Discovered when was looking into:
    #32034: Metaball used as render object(group) for particle will display wire only.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@48858 954f8c5b-7b00-dc11-b283-0030488c597c
OSX: make the progressbar in dock a gradient, to give it a more matching 3D appearance

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@48859 954f8c5b-7b00-dc11-b283-0030488c597c
Fixed issue with drag-n-drop into Clip Editor.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@48860 954f8c5b-7b00-dc11-b283-0030488c597c
Clip editor mode selection: show menu with modes on TAB

This seems to be the only straightforward way to switch fast between
modes without keeping bunch of shortcuts and current mode in head.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@48861 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #31584: Fractional step in value input for Skin Modifier (Event/input problem)

Issue was caused by the code which checked whether snapping should be enabled
on transform init taking into account keymap and special keys state. It was
used for Ctrl-Click on manipulator only.

Check for Ctrl state gave wring result with skin modifier. It was solved
by additional check for which mode transformation is initializing for --
currently manipulator is available for translation/roation/resize only
which doesn't give any keymap issues.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@48864 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #32051, Ungroup operator crashes. The link iterator can be invalidated when unconnected input links are removed.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@48865 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #32067: since BMesh, files < 2.59.3 no longer have their texface converted

Issue was caused by performing conversion from FTFaces to materials from
the end of lib_link_mesh, where tesselated faces were cleared already.

This conversion can't be switched to BMesh structures because in future
MTexPolys could be changed in a way, that versioning stuff wouldn't work
any more. Another issue is that making such a conversion per-mesh would
lead to quite a code spagetti, which is difficult to follow.

Solved by splitting per-mesh cycle in lib_link_mesh, so now it consists
of three steps:

- Do linking stuff such as custom data layers, materials. Perform a
  Conversion stuff like tessface -> polys.

- Convert all MTFaces to materials. This conversion handles all meshes
  and creates needed materials.

- Free tessfaces, mark mesh as linked.

Such a separation shouldn't noticeably affect on speed of linking.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@48866 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #31988: VBOs Textured solid : no update of material in 3Dview

Issue was caused by VBOs using CD_TEXTURE_MCOL for faces colors. This
layer was creating on mesh display (from draw_tface_mapped__set_draw)
in cases there's no such a layer.

If material settings are changing, this layer wasn't updated and old
colors were used.

Fixed by performing an update of this layer in cases it's already
exists. This would give some % of slowdown, but don't think it'll
be dramatically bad.

Would be nice to find a nice way to update such a layer in cases
material is actually changes only, or get completely rid of it/

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@48867 954f8c5b-7b00-dc11-b283-0030488c597c
3D View / Edges menu:
* Removed a redundant "Edge Crease" entry and some code cleanup. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@48868 954f8c5b-7b00-dc11-b283-0030488c597c
Small optimizations in compositor.
Most of them are not noticeable.


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


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