add BLI_mempool_as_arrayN utility function for getting the mempool as a new array (utility function currently unused).


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54216 954f8c5b-7b00-dc11-b283-0030488c597c
Fix cycles windows link errors when building with OSL master branch.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54217 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles:
* One more fix for Boost Linker errors with new OSL master branch. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54218 954f8c5b-7b00-dc11-b283-0030488c597c
GPencilStrokePoints.add() - use MEM_recallocN to initialize newly created points

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54219 954f8c5b-7b00-dc11-b283-0030488c597c
fix/workaround [#34026] Blender starts with too large window

Minimal change to stop blender window opening across all monitors.

Workaround the problem by starting maximized, and using sane defaults for non maximized window.

I checked on a few different solutions to this, Using Xinerama works OK, but with different size monitors
and not knowing which one the window-manager will pick in advance - this can be wrong too.

Now instead of opening with the screen size, just start maximized and use a default size for the non-maximized window (clamped by the screen size).

This isn't perfect since you could have 2x monitors at 1024x768, open blender, un-maximize - and blender window would cross over into the second monitor.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54220 954f8c5b-7b00-dc11-b283-0030488c597c
initializing maximized/fullscreen windows in x11 would start normal, then maximize - causing noticeable flicker.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54221 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#34050] Regression from 2.49, "Release confirms" interferes with loop cutting


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54222 954f8c5b-7b00-dc11-b283-0030488c597c
patch [#33985] Added FModifierEnvelope control_point add remove to API
from Peter Staples (batfinger)


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

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54224 954f8c5b-7b00-dc11-b283-0030488c597c
start window non-maximized since this is more the `default` state for windows. (linux/win only)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54225 954f8c5b-7b00-dc11-b283-0030488c597c
add ghost function getAllDisplayDimensions, GHOST_GetAllDisplayDimensions

This returns the desktop size, not just the size of the active monitor, useful since this constrains the mouse and we dont have to detect the active monitor (which isn't so straightforward with xlib).

carbon/cocoa are TODO, they still use getMainDisplayDimensions().


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54226 954f8c5b-7b00-dc11-b283-0030488c597c
Add Xinerama support for GHOST_GetMainDisplayDimensions() so X11 works as it should (previously would include all monitors).

Now the active monitor size is used on startup. 
Currently the cursor position is checked for intersection with the monitor bounds to find the active screen.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54227 954f8c5b-7b00-dc11-b283-0030488c597c
write all crashlogs into the temp directory (not next to blend files).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54228 954f8c5b-7b00-dc11-b283-0030488c597c
replace BLI_make_file_string with BLI_join_dirfile since its much more simple and does whats needed.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54229 954f8c5b-7b00-dc11-b283-0030488c597c
Fix scons building under unix. Now we should really have only *one* '/usr/lib' lib search path, in last position! Previously we could have a bunch of those, even in first position, which would e.g. prevent linking against a custom boost in /opt/lib/boost if you had a system boost installed...

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54230 954f8c5b-7b00-dc11-b283-0030488c597c
Fix bevel bug #33906, unwanted distortion with skewed meshes.

The code for making a rounded profile edge at a vertex needed
a special case for when that profile is on the third face
(the one not touched by the beveled edge) when only one edge
is beveled and the three faces are not orthogonal.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54231 954f8c5b-7b00-dc11-b283-0030488c597c
Attempt to fix cycles OSL link error on windows 64 bit.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54232 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #33874: active UV map chooser in uv editor should not have X button as you
can't not have an active UV map.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54233 954f8c5b-7b00-dc11-b283-0030488c597c
Fix UI translation partly missing in scons builds (reported by Leon Cheung and Gabriel Gazzán on ML, and lockal on IRC, thanks).

The problem is that, when HAVE__BOOL is not defined (as it is the case in scons currently), BLI_utildefines.h defines bool as a standard type. Was using signed char, which makes eg "bool foo = 1024" be false (overflow)! Especially nasty when using bitflags (think we have been lucky to not have worse bugs because of that)!

So changed fallback bool type to unsigned int.

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