change VIEW3D_OT_camera_to_view_selected poll function so it can be called from a script (without a view3d).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59098 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #36451, Particle system crashes blender. The psys_render_restore function was accessing the psys->frand random number array, but since the particle modifier is disabled this array does not get
initialized. Added a sanity check to skip disabled particle systems in BI render. (why wasn't this done before?)

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59102 954f8c5b-7b00-dc11-b283-0030488c597c
add support for loading 8bit BMP images


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59103 954f8c5b-7b00-dc11-b283-0030488c597c
BGE: Updating the bge.logic.expandPath() documentation to better reflect its current behavior.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59105 954f8c5b-7b00-dc11-b283-0030488c597c
Code cleanup:
* Some typo fixes. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59107 954f8c5b-7b00-dc11-b283-0030488c597c
Moved NAN_FLT define to BLI_math, this may come in useful.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59109 954f8c5b-7b00-dc11-b283-0030488c597c
make materials.pop() and more like pythons list.pop
- allow negative index values.
- error when invalid index value are passed in.
- remove last item if no index argument is given.

also change behavior to remove the material slot, it was only clearning by default but the list length remained the same.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59110 954f8c5b-7b00-dc11-b283-0030488c597c
use __builtin_nanf with gcc and clang.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59111 954f8c5b-7b00-dc11-b283-0030488c597c
Fix crash happening when clearing parent in outliner modes which doesn't support this.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59112 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #36461: ends of curves - twist still not good

Needed correct quat for first point as well.

Maybe it's time to refactor make_minimum_twist function a bit..

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59114 954f8c5b-7b00-dc11-b283-0030488c597c
Typo (dimention instead of dimension).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59118 954f8c5b-7b00-dc11-b283-0030488c597c
Grrr, more typo!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59119 954f8c5b-7b00-dc11-b283-0030488c597c
bmo_edgenet_fill_exec was building a vertex array when it didnt need to. also simplify for loops.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59123 954f8c5b-7b00-dc11-b283-0030488c597c
utility functions to reverse and wrap arrays.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@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@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@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@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@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@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@59132 954f8c5b-7b00-dc11-b283-0030488c597c