Code cleanup:
* Cycles: Removed leftover include of "kernel_qbvh.h", which was removed in r51352.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54729 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: remove unused arg


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54731 954f8c5b-7b00-dc11-b283-0030488c597c
BGE projection code fix: old patch #28893 (to fix #28753) committed in rev.41131 changed the clipping for ortho camera from -far +far to +near +far. But also introduced this -far +far when using 3dviewport camera (which shouldn't).



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54733 954f8c5b-7b00-dc11-b283-0030488c597c
Animation Editors: Operators to Group/Ungroup Selected F-Curves

This commit introduces operators to customise the grouping of F-Curves. As
groups are only available in Actions, these grouping operators only work in the
Dopesheet, Action Editor, and Graph Editor (Animation) modes.

To Use:
* Ctrl-G = Group selected F-Curves
* Alt-G  = Ungroup selected F-Curves
* or find these tools from the Channels menu

Notes:
* When invoking the grouping operator from the Channels menu, the name popup
won't show up. Instead, the group(s) created will be created with the default
name. To fix, you can either use the F6 operator properties edit OR manually
edit the names (Ctrl-LMB on the relevant channel)


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54736 954f8c5b-7b00-dc11-b283-0030488c597c
Expose a few more operators for curves on the toolbar. Some of these were
previously not available anywhere.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54737 954f8c5b-7b00-dc11-b283-0030488c597c
BGE: Fix for bug #34349 "Character walkDirection ADD mode -#INF error" reported by Angus Hollands (agoose77). If the walk directions canceled each other out, the actuator would try to normalize a zero vector, which caused the error.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54738 954f8c5b-7b00-dc11-b283-0030488c597c
new weight paint draw option to display unweighted vertices with the option to check on the active group or all groups.

notes:
- vertices with zero weights are considered the same as vertices outside of a group.
- currently these show black but this can be made a theme color.
- multi-paint overrides this option (noted in description)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54741 954f8c5b-7b00-dc11-b283-0030488c597c
Toggle-Drag UI Feature

Dragging on toggle buttons can now be used to press multiple buttons at once, especially useful for layer and outliner buttons.


notes:
- automatically enabled for all toggle buttons
  (may change this if it becomes a problem).
- only buttons of the same type are pressed
  (helps avoid annoyances eg; dragging past layer buttons onto other 3d header buttons and pressing by accident).
- automatic axis locking - dragging will lock to X/Y depending on the initial drag direction,
  makes swipe motions work better, especially with the outliner.


implementation details:
- may re-implement as a region handler (currently its a modal operator).
- checking buttons in-between cursor motion events could be more efficient (but currently works ok).
- button execution needs to be improved
  (currently executing a button thats not under the mouse needed a workaround for passing uiHandleButtonData),
  requires further changes to UI code, will do next.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54742 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: switch argument order for button_activate_exit() but/data args were flipped compared to other functions.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54743 954f8c5b-7b00-dc11-b283-0030488c597c
change to drag-toggle don't exit when the mouse is outside the region - its annoying for setting layers in the 3d header.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54744 954f8c5b-7b00-dc11-b283-0030488c597c
bge bugfix: [#18967] alpha value is never available in the color buffer by Campbell Barton (X11) and me (Win32)
This is and old patch (June, 2009). The reason it never made into trunk it's that we (me at least) thought that
it should be optional, as a ui or command-line option.

However, it seems that OSX always have the OpenGL context with alpha enabled. So I think it's consistent to
have the other OSs to follow.

The main usage of this is the BGE (or more specifically people using BGE for TV broadcasting) but I think
pydevs can have their share of fun with it in Blender as well.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54745 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #34359: 2.66 crashes when using output node

16bit PNG and Jpeg2K exporters were not aware of the simple
fact that float buffer could have only 3 or 1 channels.

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

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54747 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #34351: Displacement map Bake margin does not work

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

SSBA seemed to be working OK last time i've checked it
with MSVC and optimization enabled.

Also, we'll likely replace it with own BA soon, which
works fine with MSVC anyway.

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

Highlight background depending on number of tracks existing on frame.

This is not so much mathematically accurate displaying where things
shall be improved, but it's nice feedback about which frames better
be reviewed.

Bad frames are tracks < 8, highlighted with red.
OK-ish frame  are 8 <= tracks < 16, highlighted with yellow.

Could be some artifacts with color region start/end, this is a bit
unclear what exactly expected to be highlighted -- frames are
displayed as dots, but in fact they're quite noticeable segments.

---
svn merge -r54572:54573 ^/branches/soc-2011-tomato



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54750 954f8c5b-7b00-dc11-b283-0030488c597c
Simple preset function for setting common node sizes based on enum instead of explicit numbers.
Most nodes use the default size now and don't need explicit function calls. Most remaining nodes can also use the preset variant instead of explicit size values, these are only needed for a few special nodes.
Thanks to Sebastian König for suggesting this and doing the monkey work of changing node definitions.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54752 954f8c5b-7b00-dc11-b283-0030488c597c
remove 'register' from drag-toggle operator (so it doesn't show in the redo panel).
update credits script.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54753 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for [#34356] Inputs list in file output doesn't appear properly.

* This made File Output Node more or less useless in the 2.66 release, as the list did not appear. 
Issue caused in r53355.

Should be back ported to "a" release. 

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