Cmake / Fluids:
* Possible fix for Fluid threads UI not being shown with cmake builds. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56925 954f8c5b-7b00-dc11-b283-0030488c597c
no need to add own define for openmp. 


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56926 954f8c5b-7b00-dc11-b283-0030488c597c
Math Node:
* Added a Modulo operation to the math node, available in Compositor, Shader and Texture Nodes. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56927 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles / Wireframe node:
* Added a wireframe node (Input category) to get access to Mesh wireframe data. 
The thickness can be controlled via a "Size" parameter, and is available in world units (default) and screen pixel size. 
* Only the triangulated mesh is available now, quads is for later. 

Documentation:
http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/More#Wireframe

Render and Example file:
http://www.pasteall.org/pic/show.php?id=51731
http://www.pasteall.org/blend/21510

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56928 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: replace PARALLEL define with _OPENMP


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56929 954f8c5b-7b00-dc11-b283-0030488c597c
Fix: smoke noise tile was saved in Blender executable directory, which is often write protected on modern systems. 

This caused high resolution smoke to always regenerate new tile when domain was reinitialized, slowing down especially adaptive domain simulations. Now noise tile is saved in Blender temp directory instead.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56930 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: split scons includes onto multiple lines, reduce chance of include conflicts later on.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56931 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: scons - binreloc include was copied all over the place for no reason, -pthread too.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56932 954f8c5b-7b00-dc11-b283-0030488c597c
fix own bug [#35451] Extrude -> Grab -> Cancel -> Crash


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56935 954f8c5b-7b00-dc11-b283-0030488c597c
remove return value from MEM_freeN, it wasn't used anywhere and was cast to a different function signature. (which evidently works but error prone).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56936 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: remove callbacks only added to wrap MEM_freeN


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56937 954f8c5b-7b00-dc11-b283-0030488c597c
Fix build error after removing return value from MEM_freeN.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56938 954f8c5b-7b00-dc11-b283-0030488c597c
Related to #35452: show warning when unwrapping object with negative scale, same
as we already do for non-uniform scale.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56939 954f8c5b-7b00-dc11-b283-0030488c597c
Fix to show numpad . instead of NDOF fit as first shortcut key in menus.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56940 954f8c5b-7b00-dc11-b283-0030488c597c
Fix compiler warnings with westin OSL code.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56941 954f8c5b-7b00-dc11-b283-0030488c597c
Fluid simulation manual number of threads option now doesn't set the number
of threads to the number of cores when the fluid is created. Rather it is now
set to 0 which means "use the number of threads specified for the scene".

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56942 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35443: Animation player doesn't play some movie formats

Need to initialize FFmpeg for animation player.

This is a bit confusing, but the only way to do this
properly and clear is to call IMB_ffmpeg_init from
playback_mode command line callback.

This is because this callback is blocking and
"usual" FFmpeg initializetion (which happens after
command line parsing) was never called.

Could be switched to separate FFmpeg initializtion
and debug level set but let's keep simple for now.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56943 954f8c5b-7b00-dc11-b283-0030488c597c
Code cleanup / Cycles:
* Re-use already defined Westin closure class. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56944 954f8c5b-7b00-dc11-b283-0030488c597c
Code cleanup / Cycles:
* Use M_2PI_F in more places and do multiplication instead of division in gradient texture.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56945 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35232: Marker right-click misbehavior on adding

Made it so Add Marker button from toolbox will place
marker in the middle of the frame.

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