console: shift pad-enter now clears the line too.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60517 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#36924] Calling .define(...) on Macro subclass crashes Blender, if subclass wasn't registered


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60518 954f8c5b-7b00-dc11-b283-0030488c597c
add debug mode assert if mesh-data is removed while iterating over it. (can crash).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60520 954f8c5b-7b00-dc11-b283-0030488c597c
fix bug in ED_vgroup_subset_from_select_type, setting negative index in boolean array.
also was freeing NULL pointer in vgroup_blend_subset()


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60521 954f8c5b-7b00-dc11-b283-0030488c597c
remove assert recently added to EDBM_backbuf_check and explain odd logic.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60522 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#36923] Merge / Delete vertices crashes for some meshes

add BM_ITER_MESH_MUTABLE which steps before entering the for() loop body and prevents the assert from complaining about removing mesh data while iterating as well as the crash.

this was done in quite a few areas, more may turn up.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60523 954f8c5b-7b00-dc11-b283-0030488c597c
addition to r60523 missed using BM_ITER_MESH_MUTABLE in one place.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60524 954f8c5b-7b00-dc11-b283-0030488c597c
overlapping faces made join-triangles fail, check for this case and silently ignore them.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60525 954f8c5b-7b00-dc11-b283-0030488c597c
yet another instance dissolve deletes verts it loops over.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60526 954f8c5b-7b00-dc11-b283-0030488c597c
add cmake option WITH_MEM_VALGRIND, helps to track down errors with mempool use which sometimes only show up as bugs in very rare cases (because even though the element is freed, the chunk is still allocated).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60527 954f8c5b-7b00-dc11-b283-0030488c597c
Fix crash starting game engine on linux

Issue was caused by bug in mesa #54080 which makes
glXQueryDrawable fail with GLXBadDrawable for any
request with direct context.

Worked around by temporary overriding X error handling
when getting old interval value and disablingintervals
extension if this query fails.

Also added check for glXSwapIntervalEXT which is
apparently NULL here with GLX_EXT_swap_control=1.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60528 954f8c5b-7b00-dc11-b283-0030488c597c
fix for crash dissolving faces, bmesh walkers were using freed mempool elements.

use a convention for freeing walker-states where freed-dangling pointers aren't left assigned to prevent errors like this happening in future.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60529 954f8c5b-7b00-dc11-b283-0030488c597c
Changed some labels from Second Life to OpenSim

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60530 954f8c5b-7b00-dc11-b283-0030488c597c
freeing mempool elements now fills freed memory with --debug for debug builds.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60531 954f8c5b-7b00-dc11-b283-0030488c597c
fix crash in editmesh edge-dissolve, when 2 faces shared multiple edges, freed edges would be checked.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60532 954f8c5b-7b00-dc11-b283-0030488c597c
rigidbody: Flag bodies for validation when changing shape

This fixes a pretty old crash that occurs when changing the collision
shape to a mesh shape during simulation.

Thanks to Thomas Beck (plasmasolutions) for the report.

svn merge -r60310:60311 ^/branches/soc-2013-rigid_body_sim


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60533 954f8c5b-7b00-dc11-b283-0030488c597c
set mempool debug in the game-engine-player too. also remove redundant mempool includes.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60534 954f8c5b-7b00-dc11-b283-0030488c597c
Typo in variable name from previous commit, sorry.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60535 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#36942] unfreed memory on trackball widget use


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60540 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#36947] "Edge Slide" bugs when "Even" is on

was doing a linear interpolation between points on either side instead of interpolating along the edges.


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