Cycles / Hair:
* Fix a condition in the hair BVH code. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57041 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles / Fresnel:
* Avoid redundant assignment and use correct Normal for Ray Differentials. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57042 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#35518] UV Mapping crashes the Blender with specific image file

2 bugs here
- missing NULL check in IMB_colormanagement_display_settings_from_ctx()
- deadlock in draw_image_paint_helpers()

Simple solution is to not draw paint helpers for render/viewer images.


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


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57045 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35504: Blender crashes on separating curves with different Evaluation Time / keyframes

Used slightly different approach from what was discussed with Campbell,
and the reason of this is slightly better support of curve point animation
re-mapping.

There're actually some limitations which better be discussed bewfore 'b':
- If there're no point animation, spline separation goes just fine.
- If there're animated points in the curve, blender will preserve
  animation for currently editing curve. But, since new curve created
  by Separate operator shares the same AnimData, it'll be animatied
  in a weird way.

So not sure whether it's better to preserve animation for current spline
but require switching animationdata for new spline or resetting animation
for current curve's animation data.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57046 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles / Passes:
* Some closures (Toon, Diffuse Ramp) were not assigned to a CLOSURE_IS_* define, which made them invisible on render passes.
* Westin closures had wrong type, Sheen is Diffuse, Backscatter is Glossy.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57047 954f8c5b-7b00-dc11-b283-0030488c597c
bmesh optimization: use offsets for deform-vert lookups to avoid customdata layer lookups within loops.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57048 954f8c5b-7b00-dc11-b283-0030488c597c
modification to r57023, use active color but only draw face-stipple when selected. (active-unselected isn't in common usage for mesh editmode).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57049 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for #35495, Material preview do not update. This was caused by a line inserted by pynodes merge that would cancel all running preview jobs on each node area refresh. Not sure what the rationale for
this behavior was, but it certainly doesn't work correctly.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57050 954f8c5b-7b00-dc11-b283-0030488c597c
And add Aarch (tested with amd64). Everything should be functionnal now...

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57051 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35480: object without material crash blender when starting game engine

Was a missing NULL-pointer check. No idea why it took so long to figure
issue out -- apparently there was no crash in linux for me and msvc
didn't show any backtrace :S

Also corrected weirdo way of bit flag check which was:
  !ma->mode & MA_FACETEXTURE
better do !(ma->mode & MA_FACETEXTURE) since ! is a logic NOT.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57052 954f8c5b-7b00-dc11-b283-0030488c597c
now an addons preference are available when it start,
this change is made so addons may initialize their own settings.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57053 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles OpenCL: patch #35514 by Doug Gale

* Support using devices from all OpenCL platforms, so that you can use e.g. both
  Intel and NVidia OpenCL implementations if you have them installed.
* Fix compile error due to missing fmodf after recent math node change.
* Enable advanced shading for Intel OpenCL.
* CYCLES_OPENCL_DEBUG environment variable for generating debug symbols so you
  can debug with gdb. This crashes the compiler with Intel OpenCL on Linux though.
  To make this work the preprocessed kernel source code is written out, as gdb
  needs this.
* Show OpenCL compiler warnings even if the build succeeded.
* Some small fixes to initialize cdDevice to NULL, add missing NULL check when
  creating buffer and add missing space at end of build options for Apple OpenCL.
* Fix crash with multi device + opencl, now e.g. CPU + GPU render should work.

I did a few tweaks to the code and also:

* Fix viewport render failing sometimes with Apple CPU OpenCL, was not taking
  workgroup size limits into account properly.
* Add compile error when advanced shading in the Blender binary and OpenCL kernel
  are not in sync.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57054 954f8c5b-7b00-dc11-b283-0030488c597c
Particles: patch #35205 by Jakub Zolcik

The Emission panel now has a Use Modifier Stack option to emit particles from
the mesh with modifiers applied. Previously particles would only be emitted from
faces that exist in the original mesh. There are some caveats however:
http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.68/Tools#Particles

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57055 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles / OpenCL:
* Use advanced shading for nvidia as well, works fine on my Geforce 540M with sm_21. 
I tested the files from regression suite. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57056 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35506: enter local view, enable render draw mode, exit local view. In this
case the render engine would keep working invisible in the background.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57057 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35505: cycles object space normal mapping did not match blender internal.
Now it uses the same (strange) YZ flipping convention.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57058 954f8c5b-7b00-dc11-b283-0030488c597c
Picky UI message fix...

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57059 954f8c5b-7b00-dc11-b283-0030488c597c
view3d buttons, internal change: make act_vert_def vertex argument optional.


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