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