Merging phase 1 of the BGE Harmony branch:
 * Shadow color now usable in the BGE
 * Simplified the shadow panel while "Blender Game" renderer is active
 * Added variance shadow maps for the BGE
 * Buffered shadows on sun lamps in the BGE (orthographic)
 * Light textures in the BGE

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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@46135 954f8c5b-7b00-dc11-b283-0030488c597c
bmesh py api:
add mtexpoly image access


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@46136 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for bug #31169. Don't force the release-confirm setting in node transform operators when using the select-mouse tweak event. Instead the release confirm setting in user preferences is used in that case. For the alternative action-mouse tweak event the behavior remains the same.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@46138 954f8c5b-7b00-dc11-b283-0030488c597c
Do not stick normal length slider in 3d viewport properties to display normals buttons

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@46140 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #31195: subsurf modifier draws wrong vertex colors.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@46141 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #31147: uv unwrap not scaling islands properly to match relative size.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@46142 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #31193: Normals don't have any Z component

Issue was caused by heavily non-uniform scale applied on object.
Run scale correction on face and vertex normals draw if there's non-uniform scale.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@46143 954f8c5b-7b00-dc11-b283-0030488c597c
Python UI Files:
* Panels only dedicated to the Game Engine, belong into properties_game.py.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@46144 954f8c5b-7b00-dc11-b283-0030488c597c
Add stubs to get blenderplayer compiling

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@46145 954f8c5b-7b00-dc11-b283-0030488c597c
Fox #31185: Cannot sculpt shape keys

Was related on sculpting on locked keys. Issue was caused by building
PBVH from base mesh which is now doesn't have shape key loaded into
it as it was in 2.62.

Fixed by loading coordinates from deformed mesh into PBVH like it
happens for on-locked shape keys.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@46148 954f8c5b-7b00-dc11-b283-0030488c597c
Fix a potential memory leak in recent vertex xsort/randomize code.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@46149 954f8c5b-7b00-dc11-b283-0030488c597c
Style cleanup: spaces around operator

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@46150 954f8c5b-7b00-dc11-b283-0030488c597c
Bugfix [#30097] Motion paths range not correct - Part B (Recalculating existing
paths with new ranges)

If an object/bone already had a motion path, it was not possible to recalculate
it over a different frame range without firstly clearing these paths. This was
both a confusing and troublesome workflow, and has since been removed.



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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@46153 954f8c5b-7b00-dc11-b283-0030488c597c
Comment fixes - code for Object Motion Paths still referred to Bones


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@46154 954f8c5b-7b00-dc11-b283-0030488c597c
Fix own error in BM_mesh_remap(), forgot to remap edge pointers in disk_links of edges, so wasn’t working at all with edges remapping!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@46155 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #31110: selected to active baking did not properly check to see if the
object was actually selected, so e.g. baking shadows cast from non-selected
objects did not work.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@46156 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #31162: Applying textures to rigged models causes crash and no textures in appear in edit mode

Issue was caused by doing stuff like binding textures from glBegin/glEnd block.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@46157 954f8c5b-7b00-dc11-b283-0030488c597c
Motion Paths GUI Cleanup

This commit refactors the way that the Motion Paths GUI works. The key problems
this tries to address are:
1) Mode error - Confusion about whether we're dealing with the Object or Pose
level Motion Paths panel
2) Display settings vs Baking Settings

In line with the original design intentions for the 2.5/6 Properties Editor,
I've now split out the actual baking-related settings away from the Properties
Editor:
* Now, when clicking "Calculate Paths" from the toolbar, you'll be prompted with
a dialog to select the start/end frames (and for bones, whether to bake from
heads or tails). This is less confusing than relying on firstly setting the
range via the display range settings (and baking using that), since many people
apparently only used the "around current" mode, and were confused why things
weren't working

* Added a display of the frame ranges of the current baked Motion Path on the
active Object/Bone. This makes it clearer/easier to debug if the path suddenly
starts disappearing after a certain frame.

* Replaced Calculate/Clear Paths in the panels with a single "Update" button if
there's already a baked Motion Path.

Hopefully these changes (in combination with some of the other bugfixes) will
make it more obvious how everything works.


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