code cleanup: warnings


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53543 954f8c5b-7b00-dc11-b283-0030488c597c
fix own regression in cdDM_drawFacesTex_common() when drawParamsMapped isnt available.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53544 954f8c5b-7b00-dc11-b283-0030488c597c
no need to initialize the 2D paint node tree when project painting.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53545 954f8c5b-7b00-dc11-b283-0030488c597c
fix occasional memory leak in projection paint - multiple threads could initialize the brush curve at once.
also some header cleanup.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53546 954f8c5b-7b00-dc11-b283-0030488c597c
expose common extensions for image/movie/audio types, since python scripts had to do this internally.
- bpy.path.extensions_image
- bpy.path.extensions_movie
- bpy.path.extensions_audio

eg:

  if os.path.splitext(filename)[1].lower() in bpy.path.extensions_image:
      ... we have an image ...



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53547 954f8c5b-7b00-dc11-b283-0030488c597c
change bpy.app.build_options from frozen set to PyStructSequence_Field, mathes similar members of bpy.app and less error prone (typos won't fail silently).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53548 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#33758] Blender crashes when user goes to choose "build navigation mesh"

Give useful reports when the 'MESH_OT_navmesh_make' fails too.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53549 954f8c5b-7b00-dc11-b283-0030488c597c
add length average option to 'Follow Active Quads' unwrap, gives nicer results.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53550 954f8c5b-7b00-dc11-b283-0030488c597c
commit bpy_path files, missed these in recent commit.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53551 954f8c5b-7b00-dc11-b283-0030488c597c
Silent "no previous prototype" warning, which was treating as error here

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53552 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#33742] Solidify - Material index problem
missed copying material offset values.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53553 954f8c5b-7b00-dc11-b283-0030488c597c
remove stray glBegin() during transform that caused a glError


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53554 954f8c5b-7b00-dc11-b283-0030488c597c
fix for missing NULL check in BKE_sequence_init_colorspace().


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53555 954f8c5b-7b00-dc11-b283-0030488c597c
Added vertex color attributes (currently limited to one) and UVs included for triangle mesh hair.

I have also included a small speedup for the intersection test.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53556 954f8c5b-7b00-dc11-b283-0030488c597c
Correction for rev53555 which was obviously wrong -- always setting alpha to premul

Also optimized it a bit by skipping byte/float buffer allocation.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53557 954f8c5b-7b00-dc11-b283-0030488c597c
Fixes - post 2.65a

- Trackpad swipes now behave same as scrollwheel for listview scrolls
  (disabling 2d view scroll when mouse over)

- Added back 2.4 debug print for glGetError()
  Only useful for developers - to check what goes on when ogl messes up.

- Made more clear print for read factory default. It's not error :)



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53558 954f8c5b-7b00-dc11-b283-0030488c597c
Fix knife cut bug #33625, failure to cut in otho mode sometimes.
Problem was that the code to limit the front and back planes
for better precision assumed line would have center near origin.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53559 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup, also remove glError check in font drawing code since its now a debug option.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53560 954f8c5b-7b00-dc11-b283-0030488c597c
Optimization for speed regression in mipmap generation

Regression was caused by alpha premul cleanup commit and the reason
of slowdown was uchar <-> float conversion which is slow.

Replaced with uchar <-> int conversion which seeps to be accurate
enough and mostly eliminates slowdown.

Slowdown was easy to notice when movie clip is used for 3d vierport
background and undistortion is enabled. In this case every frame
will re-calculate mipmaps.

It's still a nit slower than mipmap generation before cleanup
commit, but couldn't think about extra boost here atm.

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

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