fix [#36187] Crash loading large images

alloc size was larger then an int, use size_t for all image alloc sizes.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59978 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: use bool for imbuf allocation functions.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59979 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#36693] segfaults when split vertice of Bezier curve 
own error in recent curve split patch.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59980 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#36492] Keymap: Issue setting operator path properties


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59982 954f8c5b-7b00-dc11-b283-0030488c597c
fix/workaround [#36694] Texture node groups tend to crash Blender a lot.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59983 954f8c5b-7b00-dc11-b283-0030488c597c
Add BLI_utildefines.h for __func__ (necessary for MSVC).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59984 954f8c5b-7b00-dc11-b283-0030488c597c
Change window checks to desktop size instead of screen size.

This allows to open windows stretched over monitors. Saving
stretched layouts open correctly as well.

Renamed screensize_all to desktopsize to better convey meaning.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59985 954f8c5b-7b00-dc11-b283-0030488c597c
Remove dimension checks from window creation.

This should be (and is) done by the caller instead (windowmanager)
to ensure new windows fit properly on the desktop. Saving
stretched layouts and layouts with window over display 
boundaries now becomes possible on Windows too.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59986 954f8c5b-7b00-dc11-b283-0030488c597c
add 2d convex hull utility function, BLI_convexhull_2d(), and python api mathutils.geometry.convex_hull_2d()

uses Andrew's monotone chain 2D convex hull algorithm.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59990 954f8c5b-7b00-dc11-b283-0030488c597c
Collada libraries build for Win64 (regular libs and debug libs)
using msvc-2008 pro
based on OpenCollada git revision: 828b60384552b83e55d2af7055f07d2c40b4d3f4

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59991 954f8c5b-7b00-dc11-b283-0030488c597c
Collada include fles for Win64
based on OpenCollada git revision: 828b60384552b83e55d2af7055f07d2c40b4d3f4

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59992 954f8c5b-7b00-dc11-b283-0030488c597c
makesrna fix: The C++ wrapper functions for collection lookup (both int and string) were not clearing the return pointer if no item is found, but only in case there is a custom lookup function defined.
This causes trouble with Cycles because the C++ API uses the returned pointer to determine validity - if no item is found the pointer should be NULL for checking.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59993 954f8c5b-7b00-dc11-b283-0030488c597c
* Compile fix for r59990.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59994 954f8c5b-7b00-dc11-b283-0030488c597c
add BLI_SMALLSTACK_***, macros: stack doesn't have a fixed size, it uses stack memory and never allocates.
it can be added and removed many times per function but will always remain the size of the maximum number of items.

not used yet, added for normal calculation function from mont29.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59997 954f8c5b-7b00-dc11-b283-0030488c597c
remove redundant indirection in asserts


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59998 954f8c5b-7b00-dc11-b283-0030488c597c
OSX/Scons/clang: restrict the ftemplate fix to clang only

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60001 954f8c5b-7b00-dc11-b283-0030488c597c
Tweaks to plane track

- Do plane re-evaluation only when transform is actually done.
  Before this re-evaluation happened on every mouse move.

- Added a flag "Auto Keyframe" for the plane track, which does:

  * If Auto Keyframe is enabled, then every manual edit of the
    plane will create a new keyframe at current frame and update
    plane motion between current frame and previous/next keyframe.

    This now also implies blending detected motion with neighbor
    keyframes, so there's no jump happening.

    No automatic update on manual point tracks edit will happen.

  * If auto Keyframe is disabled, then no keyframes are adding
    to the plane and every plane tweak will re-evaluate in on
    the whole frame range.

    In this case manual tweaks to point tracks and re-tracking
    them implies plane re-evaluation.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60002 954f8c5b-7b00-dc11-b283-0030488c597c
Don't show 2D cursor in tracking mode i pivoting is not set to 2D cursor

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60003 954f8c5b-7b00-dc11-b283-0030488c597c
Enable view3d-like shortcuts for pivot point in clip editor

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60004 954f8c5b-7b00-dc11-b283-0030488c597c
Core code for split normals computation. Many thanks to ideasman for is optimization guiding and code reviews!

Note the API is not yet committed, as it may need a few more checks & tweaks. ;)

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