BGE: Fix for [#33053] "2.6x Joystick Sensor Event: Axis fails to fire at full tilt" reported by Auuman Anubis (auuman_anubis).

The problem was that SCA_Joystick::pAxisTest() was using shorts, and tried to store abs(MIN_SHRT) in a short. However, on most systems MIN_SHRT == -32768 and MAX_SHRT == 32767. This means that abs(MIN_SHRT) > MAX_SHRT, and thus the short would overflow.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53617 954f8c5b-7b00-dc11-b283-0030488c597c
fix for bugs 30300, 31107: pen pressure with multiple open windows on MS Windows

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53618 954f8c5b-7b00-dc11-b283-0030488c597c
style cleanup: '} else' and add this check to check_style_c.py


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53620 954f8c5b-7b00-dc11-b283-0030488c597c
compare normalized vectors when calculating the view horizon


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53621 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: warnings and use stdbool for bpy* funcs.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53622 954f8c5b-7b00-dc11-b283-0030488c597c
split viewport clearing into its own function: view3d_main_area_clear()


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53623 954f8c5b-7b00-dc11-b283-0030488c597c
Track.insert_frame used to create markers with zero pattern size

In most cases it's harmles since this call was intended to be used
for importers only where pattern size was overriding after creation
anyway. But better don't allow things which will work unpredictable.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53626 954f8c5b-7b00-dc11-b283-0030488c597c
Motion tracking API change

Replace Tracks.add(count, frame) with Tracks.new(name, frame)
which will return newly created track. Before there was no
reliable way to get newly created tracks.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53627 954f8c5b-7b00-dc11-b283-0030488c597c
add area_poly_v3_max() for use with area_poly_v3


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53629 954f8c5b-7b00-dc11-b283-0030488c597c
Add normal_flip() member to Python BMesh's Face.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53630 954f8c5b-7b00-dc11-b283-0030488c597c
add error check for qtcreator&netbeans project file generators to quit early if cmake fails.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53632 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #33735: sequencer crash when using rendered preview

Issue was caused by preview job starting just moment before
sequencer starts rendering. This lead to threading conflicts
since renderer itself is not thread-safe.

Now all preview jobs would be killed before sequencer starts
rendering stack when final render for preview is enabled.

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

The user pref "Mini Axis Brightness" didn't work.
Note it's only accissble via the outliner now.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53634 954f8c5b-7b00-dc11-b283-0030488c597c
minor improvement to CustomData_bmesh_merge(), allocate the correct size pool rather then always 512.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53635 954f8c5b-7b00-dc11-b283-0030488c597c
Make options for background gradient more organized.

This was difficult to do because we group theme colours and display them
together in user preferences. To make the background options more
presentable and keep them grouped and separate, I needed to group the
two gradient colours somehow. I added a separate ThemeSpaceGradient RNA
struct as opposed to ThemeSpaceGeneric. This struct is the same as
ThemeSpaceGeneric but it lacks the window background option (which does
nothing now) and includes the UiGradient struct which now has both
gradient colours. I modified the clear functions to use a new high
colour from the gradient. Now all options appear grouped and any other
editor that may use a gradient for the window background may do so.

Also corrected incorrect MAIN_VERSION_ATLEAST macro, it would not detect
versions correctly

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53636 954f8c5b-7b00-dc11-b283-0030488c597c
dont copy the mvert array in DM_to_bmesh_ex()


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53637 954f8c5b-7b00-dc11-b283-0030488c597c
ui_lists shall be NULLed in BKE_area_region_copy

Otherwise it'll be nasty crashes when, say, adding and removing
screens with lists visible on the screen.

Thanks Ton for assisting looking into this issue :)

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