Fix #35493: Blender crash when rendering in terminal mode

Use the same window manager for freestyle bmain as
real bmain uses. This is needed because freestyle's
bmain could be used to tag scenes for update, which
implies call of ED_render_scene_update in some cases
and that function requires proper windoew manager
to present.

Alternative would be to make render scene update does
nothing if there's no window manager, but we wanted
freestyle to be applied in rendered viewport once and
think current change is what we'll need to support
freestyle in viewport.

But a bit further, perhaps that'd make sense to not
register ED_render_scene_update as a scene update
callback when in background mode?

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56994 954f8c5b-7b00-dc11-b283-0030488c597c
weight tools: added more selection types to invert operator

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56995 954f8c5b-7b00-dc11-b283-0030488c597c
Bring back "Local" as second orientation choice after "Global", as in previuos "manual" menu. Pointed out by sebastian_k on IRC, thanks.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56996 954f8c5b-7b00-dc11-b283-0030488c597c
fix for building on osx with recent freestyle bugfix.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56997 954f8c5b-7b00-dc11-b283-0030488c597c
First attempt to handle openexr/ilmbase 2.0 in install_deps.sh (linux builds).

Only activated for Deb-like distro for now, only tested with testing/amd64. Notes :
* Had to add a hell of patches to ilmbase/openexr/oiio cmake files (some are real, stupid bugs fixing [like files missing in lists or wrong linking order], others are "enhancements" [like being able to compile both static and dyn libs for openexr]).
* Unfortunately, I could not manage to keep oiio static (can't compile osl later, as it does not link all deps of oiio, tiff, jpeg, png, etc.). I’ll try to fix this later, but for now, you'll have to do as with boost (ldconfig).

I won't say here what I think about not having any (reliable) way to really link a static lib into another one... :/

Will test and enable other distro in following day(s), I do not *expect* much difficulties here.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56998 954f8c5b-7b00-dc11-b283-0030488c597c
weight tools: added more selection types to levels operator

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@56999 954f8c5b-7b00-dc11-b283-0030488c597c
fixed memory leak in weight tool: levels

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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57001 954f8c5b-7b00-dc11-b283-0030488c597c
Changes for masks API

Made it more consistent with blender convensions
and now it's very familiar to curve's python api.

- Made it spline.points.add(count) wich is more
  efficient in cases lots of points are adding.
  (points.new was removed tho).

- Removed mask_layer.splines.add(), now it's only
  mask_layer.splines.new(), which is how splines
  are adding for curves.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57002 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for [#35490] Initial cube is green, turn off matcap and it is correct color
* Own error from r56980, "smooth" is an Interpolation qualifier in GLSL, so use another variable name to avoid the error. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57003 954f8c5b-7b00-dc11-b283-0030488c597c
Fix bug #35450, bevel make large spikes sometimes.
Needed special case for when beveled edge is
antiparallel to an adjacent edge.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57004 954f8c5b-7b00-dc11-b283-0030488c597c
weight tools: added more selection types to limit total operator

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57005 954f8c5b-7b00-dc11-b283-0030488c597c
A bunch of fixes to install_deps.sh (most notably, a bug in oiio's embeded version of tbb, buggy oiio archive handling, moved ilmbase files into openexr dir (as expected by Blender), ...).

Tested with debian testing/i386 this time.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57006 954f8c5b-7b00-dc11-b283-0030488c597c
Updated libs for VC2008 x86:

- ILMBase and OpenEXR 2.0.0
- LLVM 3.2 rebuild because of missing includes for OSL
- OpenImageIO 1.1 (depends on OpenEXR)
- Open Shading Language 1.3 (depends on OpenEXR and OIIO)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57007 954f8c5b-7b00-dc11-b283-0030488c597c
Merge branch 'master', remote-tracking branch 'upstream/master'
fix for out of bounds memory access in solidify (harmless with guardedalloc padding but bad practice)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57008 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#35500] Material Copy Crash on specific scenes
check material textures exist before using in a pasted material.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57009 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: typo and stop manpage turning '$' into italic.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57010 954f8c5b-7b00-dc11-b283-0030488c597c
Enabled new openexr for RPM-based distro. Checked with FC18/amd64 for now, will check with Suse later.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57011 954f8c5b-7b00-dc11-b283-0030488c597c
fix misalignement of timeliner marker with timeline

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