Fix for OSL memory leak. The context creation for OSL is now done in the shader_setup_* functions, since it should specific to the sample being worked on. The the context release then happens in the kernel_shader functions after shader evaluation is done. Care has to be taken to ensure the shader_release function is also called in cases where the path integration is cancelled early, this was the main cause for unreleased contexts and subsequent new allocations.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50410 954f8c5b-7b00-dc11-b283-0030488c597c
 * gcc 4.7 is more strict. This patch will remove 'non virtual
destructor warnings' in the core of the compositor.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50411 954f8c5b-7b00-dc11-b283-0030488c597c
fix/workaround [#31555] Username with special chars in Windows 7

Theres a bug where python/windows ignores PYTHONIOENCODING, workaround this by manually overriding the stdout/stderr.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50412 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles fix: particle standard attribute had no name conversion yet.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50418 954f8c5b-7b00-dc11-b283-0030488c597c
Fix compositor crash. g_highlightedNodes can be NULL.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50420 954f8c5b-7b00-dc11-b283-0030488c597c
Sequencer: show color sample line in image display mode only

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50422 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for attribute lookup in OSL. This uses a map in the OSL globals instead of the device texture.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50428 954f8c5b-7b00-dc11-b283-0030488c597c
Quick fix for compiler error. Somehow the isfinite symbol got lost for SVM too now, no idea how this happened or where it actually came from. This will likely also cause trouble with CUDA/OpenCL compilers, will have to be fixed properly later.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50430 954f8c5b-7b00-dc11-b283-0030488c597c
Adding brazilian portuguese language, as requested by portuguese team.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50431 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: bmesh subdivide code was growing arrays one by one, when the final size is known - do this in one go.
also replace for loops with iterator macros.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50432 954f8c5b-7b00-dc11-b283-0030488c597c
silencing some of the warnings in OSL for OSX

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50433 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: use *(*var)[2] for pairs in bmesh code rather then a 1d array stepping by 2.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50434 954f8c5b-7b00-dc11-b283-0030488c597c
OSL Backend:
* Added the Phong BRDF from the inbuilt OSL shader library.

This can be used in OSL shaders only for now:
* phong(normal N, float exponent)
* phong_ramp(normal N, float exponent, color colors[8]



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50435 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: BM_face_legal_splits() was doing some redundant assignments.


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50437 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: remove deprecated defines and some struct members


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50438 954f8c5b-7b00-dc11-b283-0030488c597c
support ANIMFILTER_FOREDIT for mask layers, also move deprecated metaball types to the end of the switch statement when evaluating metaballs.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50439 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#32500] Odd behaviour with subdividing an ngon


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50441 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: capitalize defines.


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