Fix #36595: file browser sorting with link/append would mix together .blend files
and directories instead of keeping them separate like regular file browse.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59614 954f8c5b-7b00-dc11-b283-0030488c597c
correct own recent commit, malloc_usable_size() isn't valid for mmap()'d memory.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59615 954f8c5b-7b00-dc11-b283-0030488c597c
micro-optimization, avoid checking is_power_of_2_i once in power_of_2_max_i
also whitespace edit.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59616 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #36598: blender render crash baking and then doing a full sample render.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59617 954f8c5b-7b00-dc11-b283-0030488c597c
patch [#36336] Split operator for curves and surfaces
by Kevin Mackay (yakca)

The operator follows roughly the same behaviour as the split operator for a mesh (Ykey).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59619 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: curves, replace magic numbers for enums.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59620 954f8c5b-7b00-dc11-b283-0030488c597c
edits to curve operator
- remove delete-all option (users can just select all and delete as with all other modes).
- remove CALLOC_STRUCT_N macro.
- CURVE_OT_delete define a dynamic enum rather then a custom invoke menu function.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59621 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#36570] Changing the filename of a image strip doesnt refresh sequencer

was casting a StripElem as a Sequencer struct.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59622 954f8c5b-7b00-dc11-b283-0030488c597c
don't replace the extension with '.blend' in save code since the file selector already ensures this,
needed so python scripts can save as temp filenames.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59623 954f8c5b-7b00-dc11-b283-0030488c597c
BGE: The WM_OT_blenderplayer_start addon now saves a copy of the current blendfile with a trailing '~' to keep paths intact. An unsaved file will still go to the tmp directory. This file is deleted when the blenderplayer process exits.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59624 954f8c5b-7b00-dc11-b283-0030488c597c
default blend file name setting (untitled.blend) length check wasn't correct, move to generic function BLI_ensure_filename().


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59625 954f8c5b-7b00-dc11-b283-0030488c597c
use os.remove rather then unlink (the same but all other areas use 'remove')


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59626 954f8c5b-7b00-dc11-b283-0030488c597c
fix for glitch where the text editor could be clamped to scroll above line 1 (would flicker on scroll).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59627 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#34462] Crash when switching modes via mix of TAB and spacebar menu


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59628 954f8c5b-7b00-dc11-b283-0030488c597c
follow up on r59628, setting modes now ensures that other modes exit first,
this was only done in some cases before and it was possible to enable weightpaint+sculpt at the same time when enabling sculpt by directly running the mode switching operator.

add generic function to ensure a compatible mode before entering the new mode (added to each operators exec function)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59629 954f8c5b-7b00-dc11-b283-0030488c597c
Use static odifier for non-public functions in new sky model.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59630 954f8c5b-7b00-dc11-b283-0030488c597c
Last uiList patch (for now!): filtering and reordering of shown elements.

Thanks to Brecht for the reviews. :)

This commit adds a show/hide extension below each uiList, containing by default an option to filter and/or reorder items by name (and to reverse those filtering and reordering).

Each derived uiList class in Python can define more specific filtering by implementing callbacks: the draw_filter() function to draw options in UI, and the filter_items() function to effectively filter/reorder items.

Note: the advanced options for vgroups shown as "proof od concept" in patches do not go in trunk for now, we have to find a better way to get those vgroups info for UI code, we can't afford to loop over each vertex here!

And doc (release notes and uiList example) is still to be updated, will do this in next days.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59631 954f8c5b-7b00-dc11-b283-0030488c597c
Support transformation around 2D cursor in movie clip editor.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59632 954f8c5b-7b00-dc11-b283-0030488c597c
UIList: update examples and templates.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59634 954f8c5b-7b00-dc11-b283-0030488c597c
Fix building under windows after r59631 (grr, sorry :/ ).

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