utility functions to reverse and wrap arrays.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59124 954f8c5b-7b00-dc11-b283-0030488c597c
bmesh edge-net: refactor out face creation into its own function, replace array reallocation with alloca.
fix for error increasing the face tag count when the face might not be created.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59125 954f8c5b-7b00-dc11-b283-0030488c597c
BGE Dome: bugfix - Warp Mesh not working

Fix: to swap the drawing order for the warp mesh polygon
The code was drawing CW instead of CCW.

It would work in some cases where the drawing flags would allow for the
back faces to be visible.

More specifically the alternative fix were:
glDisable ( GL_CULL_FACE );
glFrontFace( GL_CW );

Bug originally reported in the small_planetarium mailing list.
This bug fix was a comissioned job by a group who prefer not to be
credited. Thanks regardless.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59126 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for uninitialized covariance matrix

This is likely a culptrit caused #36231: Motion tracker bug in 2.68


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59128 954f8c5b-7b00-dc11-b283-0030488c597c
include order change for osl, fixes gcc compile error - undefined uintptr_t


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59129 954f8c5b-7b00-dc11-b283-0030488c597c
fix own error in BM_mesh_calc_edge_groups() was clearning wrong dirty-index flag.
also remove unused transform defines.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59131 954f8c5b-7b00-dc11-b283-0030488c597c
bmesh utility functions for storing an editselection after another in the list.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59132 954f8c5b-7b00-dc11-b283-0030488c597c
fix bug with editmesh rip, active edge could be left on the unselected side of the edge loops.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59133 954f8c5b-7b00-dc11-b283-0030488c597c
Fix double-free happening when having proxy with motion paths

Make it so mpath is not shared between several bones now.

Fix suggested by Joshua Leung, thanks!

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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59137 954f8c5b-7b00-dc11-b283-0030488c597c
add materials.clear() method, matching other python list method.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59138 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#36349] Separate mesh by material creates meshes with all the materials from the original


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59139 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles:
* Remove an unneeded return in shader_bsdf_eval(), function is void. 
* if / else if tweak in shader_bsdf_ao().

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59140 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #36467: ends of curves - 2D differs to 3D

This is getting confused, why bevel is handled different
for 2D and 3D curves?

Anyway, made bevel work for 2D case nice again, but it's
probably nice to unify 2D and 3D cases.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59141 954f8c5b-7b00-dc11-b283-0030488c597c
Adding a new state for sound handles in audaspace: stopped.

Now sounds that stopped playing but are still kept in the device can be differentiated from paused sounds with this state.
This should also fix the performance issues mentioned in [#36466] End of SequencerEntrys not set correctly.
Please test if sound pausing, resuming and stopping works fine in the BGE and sequencer, my tests all worked fine, but there might be a use case that needs some fixing.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59143 954f8c5b-7b00-dc11-b283-0030488c597c
BGE: Finally adding support for additive layer blending.

Currently this is only for the Python API. The logic brick will be updated in a future commit.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59145 954f8c5b-7b00-dc11-b283-0030488c597c
BGE: The Action Actuator can now make use of additive blending.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59146 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#36455] importing obj data after saving doesn't work


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