BGE: Adding a maxJumps to the character controller to adjust how many jumps a character can perform before having to touch the ground. By default this is set to 1, which means a character can only jump once before having to touch the ground again. Setting this to 2 allows for double jumping.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53324 954f8c5b-7b00-dc11-b283-0030488c597c
BGE: Don't set the character controller's gravity when creating the controller. The default from Bullet works much better than what we were using.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53325 954f8c5b-7b00-dc11-b283-0030488c597c
Region scrollbar fix!

Now scrollbars correctly hide and show, making space for the actual contents
in a region. It solves several old hacks, and puts view2d code a bit more
back in control as well. 

Implementation notes:

- The view2d mask feature is working again
- The #define V2D_SCROLL_HORIZONTAL_HIDE means: "turn on hiding".
- Code for UI_view2d_region_reinit() is enforcing better standard view settings

But... two hack/patches needed to be added:

- Region panel drawing: if after generating the button panels it appears
  a scroller hides or reveils, it calls all the generating code again.
  (a simple scale doesn't work due to rounding differences in layout code)

- View2d code that maps 'tot' and 'cur' rects: if this code detects that
  the mask changes, it calcs the map code again.

Also a bugfix (issue in 2.65)

- The left/bottom area split widget was drawing 1 pixel too large sometimes, 
  leaving bad trails on moving area dividers.





git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53326 954f8c5b-7b00-dc11-b283-0030488c597c
Node editor: remove option to show overlapping Property region.

- The main window has sliders, which was drawn behind the region
- If property region had slider too, it got even worse.

Basically the node editor is UI view, so drawing another UI on top isn't
functioning well in general.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53327 954f8c5b-7b00-dc11-b283-0030488c597c
Bug fix #33633 (and irc report)

The function ui_popup_block_clip() didn't correct the buttons if a clip
happened, causing the items to draw outside.




git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53328 954f8c5b-7b00-dc11-b283-0030488c597c
Bug fix #33673

Edge length display in standard files (1 blender unit == 1) only gave two
numbers precision for lengths > 1. Three is much nicer at least.

The guess-work here in the code remains a bit dubious :)



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

- Drop group into 3d window now puts itself at mouse cursor location.
- Drop objects into 3d window now doesn't move the 3d cursor anymore.

Added new function ED_view3d_cursor3d_position() to handle this,
so the temporarily object-drop operator macro also could go away.
(Which was setting 3d cursor)




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

Mesh had invalid face indices (number too high).
On Separate in Edit Mode it crashed.

Two fixes:

- The Material properties viewer just showed the last material in the index array.
  Now it shows nothing, to indicate it's an invalid selected material.

- Crash was caused by array copy magic, not checking the active index properly.

(No assert, no warning prints, I think cases like this can happen too easily, and this
way user gets notified nicely and can fix it).



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53332 954f8c5b-7b00-dc11-b283-0030488c597c
Fix: after multires baking, gpu textures were not getting invalidated
for images and viewport was not getting refreshed with new baked
textures. Now made sure this happens. The image list is copied to the
job custom data so that the custom data cleanup function can properly
delete them (if gpu image texture deletion does not happen on main
thread, image bindcodes will remain intact for original images)

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53333 954f8c5b-7b00-dc11-b283-0030488c597c
Fix part of #33662: cycles crash using displacement on meshes with vertices not
attached to any face.

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