style cleanup: also rename bmesh_decimate.c --> bmesh_decimate_collapse.c


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51518 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: quiet warning


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51519 954f8c5b-7b00-dc11-b283-0030488c597c
add un-subdivude as an optional method for the decimate modifier, gives more even geometry & nicer results in some cases.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51520 954f8c5b-7b00-dc11-b283-0030488c597c
missed copying new settings in previous commit


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51521 954f8c5b-7b00-dc11-b283-0030488c597c
add limited dissolve as a decimation type to the decimate modifier.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51522 954f8c5b-7b00-dc11-b283-0030488c597c
add option for decimate-collapse to keep triangulated geometry (normally quads stay as quads when not collapsed).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51523 954f8c5b-7b00-dc11-b283-0030488c597c
fix for edge collapse decimator re-combining triangles that make degenerate quads.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51524 954f8c5b-7b00-dc11-b283-0030488c597c
add option to planar decimator to collapse all verts that define face boundries (verts that 2 faces share and have 2 edge users).

avoids ugly stepping between faces when applying on curves surfaces. (but less useful for architectural style models)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51525 954f8c5b-7b00-dc11-b283-0030488c597c
fix for issues in new decimator
- when an edge exists across a quad, dont attempt to triangulate it. (such a case isn't so common anyway)
- silly mistake when checking if anything needed to be done in the modifier, percent was being checked for 1.0 even when not used.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51526 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for [#28927] Z-Transp disables Material Pass Index


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51527 954f8c5b-7b00-dc11-b283-0030488c597c
Display buffer should be marked as invalid when setting pixels from python

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51528 954f8c5b-7b00-dc11-b283-0030488c597c
fix for crash using an uninitialized pointer when fcurves reference missing collections (removing animated shape keys could crash).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51529 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #32943: sculpt mode draw crash with VBO and flat shaded, hidden faces.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51530 954f8c5b-7b00-dc11-b283-0030488c597c
Sizeerror 8 fix for DecimateModifierData

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51531 954f8c5b-7b00-dc11-b283-0030488c597c
Correction to recent fix for shader nodes -- image could be not loaded yet
when tree is being executed. This could lead to nor initialized color space
for the image.

Solved by insuring image buffer is loaded before checking for whether color
conversion is needed.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51532 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: remove $Id's that crept back in, also osl style edits

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51533 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #32941: Sequencer Preview shows texture which is apart of the window.

Issue was caused by buffer shadows were binding buffer after offscreen buffers
was bind which lead to some unpredictable results.

Made it so ED_view3d_draw_offscreen wouldn't bind any buffers and for proper
shadows ED_view3d_draw_offscreen_init should be manually be called before
drawing to an offscreen.

This should also make open gl render with AA enabled a bit faster.

Also fixed missing sequencer cache invalidation when open gl render type is
changing.

Material and Rendered modes are still a TODO for sequencer.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51534 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for direct_link of local ID data blocks (node trees in material/lamp/world/scene/texture). These data blocks also need to link the id properties group in their ID base, otherwise custom properties stored in such local node trees will lead to dangling pointers on file load.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51535 954f8c5b-7b00-dc11-b283-0030488c597c
rename api functions...
- minf, maxf, mini, maxi --> min_ff, max_ff, min_ii, max_ii


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51536 954f8c5b-7b00-dc11-b283-0030488c597c
debug output: stop printing event handlers for mouse moves of mouse inbetween events.


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