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@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@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@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@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@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@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@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@59632 954f8c5b-7b00-dc11-b283-0030488c597c
UIList: update examples and templates.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@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@59635 954f8c5b-7b00-dc11-b283-0030488c597c
Optimizations by Campbell, thanks!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59637 954f8c5b-7b00-dc11-b283-0030488c597c
correct own error r59619 (changes made to patch, adding handle recalculation which is needed after splitting).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59638 954f8c5b-7b00-dc11-b283-0030488c597c
mesh bisect can now be defined with mouse input
(using cursor + numeric values was too clumsy for defining orientation).

once the cut is done numeric input still works as before


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59641 954f8c5b-7b00-dc11-b283-0030488c597c
don't show screen-space-line start/end points in operator redo panel.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59642 954f8c5b-7b00-dc11-b283-0030488c597c
Fix part of #36594: 16 bit tiff not loading with correct color space in cycles.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59643 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #36602: crash with freestyle and full sample render of empty render layer.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59644 954f8c5b-7b00-dc11-b283-0030488c597c
Allowing the BGE to build with SDL2. I'm not sure if this is the correct fix yet, but at least it builds.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59646 954f8c5b-7b00-dc11-b283-0030488c597c
Adding support for enabling/disabling vsync to Ghost_SDL.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59647 954f8c5b-7b00-dc11-b283-0030488c597c
Cleaning up some prints related to SDL.

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