Patch [#31006] Text editor undo buffer rework.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52218 954f8c5b-7b00-dc11-b283-0030488c597c
looks like we need those libs as well to compile with static ffmpeg on fedora (by why in hell librt???)...

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52219 954f8c5b-7b00-dc11-b283-0030488c597c
Grmpff! Some stupids edits sneaked in previous commit!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52220 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles:
* Remove empty "Nodes" folder. 

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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52222 954f8c5b-7b00-dc11-b283-0030488c597c
Fix 'polygon eating' problem in bevel (bug #33141)
which was due to almost-parallel lines.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52223 954f8c5b-7b00-dc11-b283-0030488c597c
fix for deleting lines hanging the text editor when no markers are used, presence of markers still hangs.

also compiler warnings and some style edits.


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

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52225 954f8c5b-7b00-dc11-b283-0030488c597c
fix for 3d text input failing for non utf8 input.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52226 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#33179] Can't delete centered edge loop if x-mirror is activated


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52227 954f8c5b-7b00-dc11-b283-0030488c597c
Z sampling for nodes backdrop
As it turned out,  the node space was the only place we have the option to sample the backdrop buffer RGB, but not the zed.
This code is copied from image space.

Now one can use the viewer node and sample the depth while looking at the color buffer (so Map Range Node works even better)
Patch written during BlenderPRO 2012, Brasília ;)
(reviewed by Lukas Toenne)

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

Initial support of OSL builds using SCons build system. Only tested on Linux now.
No changes to configuration files themselves -- for now check how it's configured
for linux buildbot (it was already horror to make all this changes and verify them,
changes to linux-config.py could easily be done later).

Currently WITH_BF_STATICOSL and WITH_BF_STATICLLVM are more like rudiments because
linking against oslexec requires special trick with --whole-archive. We woul either
need to find a way dealing with this oslexec less hackish or drop STATICOSL and 
STATICLLVM flags. Will keep dropping this flags for until we have "final" build
rules for OSL.

Still can not make 32bit linux rendering with OSL -- blender simply crashes when
starting rendering. So for time being this issues are solving disabled OSL for
32bit build slaves.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52229 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: move local math functions into math_geom.c, math_vector.c, no functional changes.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52230 954f8c5b-7b00-dc11-b283-0030488c597c
Correction to 32bit buildslaves



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52231 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #33183: cycles bump mapping was not executed with only an AO node in a material.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52233 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles: ambient occlusion now takes per-BSDF normals into account.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52234 954f8c5b-7b00-dc11-b283-0030488c597c
Image thread safe improvements

This commit makes BKE_image_acquire_ibuf referencing result, which means once
some area requested for image buffer, it'll be guaranteed this buffer wouldn't
be freed by image signal.

To de-reference buffer BKE_image_release_ibuf should now always be used.

To make referencing working correct we can not rely on result of
image_get_ibuf_threadsafe called outside from thread lock. This is so because
we need to guarantee getting image buffer from list of loaded buffers and it's
referencing happens atomic. Without lock here it is possible that between call
of image_get_ibuf_threadsafe and referencing the buffer IMA_SIGNAL_FREE would
be called. Image signal handling too is blocking now to prevent such a
situation.

Threads are locking by spinlock, which are faster than mutexes. There were some
slowdown reports in the past about render slowdown when using OSX on Xeon CPU.
It shouldn't happen with spin locks, but more tests on different hardware would
be really welcome. So far can not see speed regressions on own computers.

This commit also removes BKE_image_get_ibuf, because it was not so intuitive
when get_ibuf and acquire_ibuf should be used.

Thanks to Ton and Brecht for discussion/review :)

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52235 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for last commit, build error with CUDA sm 1.x.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52236 954f8c5b-7b00-dc11-b283-0030488c597c
Windows / Scons OSL:
* Initial support, still commented. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@52237 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles OSL: windows build system changes to support static OSL/OIIO.



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