Attempted fix for #36569: couldn't unmap memory errors on Windows. The guardedalloc optimizations were not entirely thread safe for mmap.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59650 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #36605: Segfault when border selecting markers in the "graph" mode when no track is active

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59651 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for [#36599] Freestyle: Line thickness modifier with certain blend types incorrectly calculated.

The inner/outer thickness values were separately blended by Multiply, Divide and other binary
operators, which resulted in the wrong thickness values reported in the issue.  The operations
must be applied to the sum of the inner and outer thickness values.

Also the Minimum and Maximum operators were not properly implemented (one of the two operands
were ignored by mistake).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59652 954f8c5b-7b00-dc11-b283-0030488c597c
Fix [#36600]: Smoke subframes not working with initial velocity

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

Condition in pose mode seemd to be inverted, which made it so
pose mode could not be entered.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59656 954f8c5b-7b00-dc11-b283-0030488c597c
refresh paint_common_properties file on script refresh, found by Sebastian Koenig, thanks

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59658 954f8c5b-7b00-dc11-b283-0030488c597c
minor ui edits
- move addon refresh button into header
- uilist, use icon for sorting by name (gives more room for name, icon is used in fileselector for same purpose).
- rename orderby to sort in rna and flag names.
- simplify BKE_nurb_handle_calc_simple


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59659 954f8c5b-7b00-dc11-b283-0030488c597c
execute bisect immediately (without starting modal input) if the plane is already set or if there is no 3d view available.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59661 954f8c5b-7b00-dc11-b283-0030488c597c
Cleanup, bitflags as bitshift ops, and some formating...

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59662 954f8c5b-7b00-dc11-b283-0030488c597c
Some knife fixes. Avoids duplicating verts; better handling of cut-through ortho.

Now cut lines detect vertices that they pass (almost) exactly over
and snap to them, to avoid making verts vert close to other ones.

Added radius arg to BKE_bmbvh_ray_cast so that can detect an obscuring
face when the ray might otherwise go exactly between two triangles.
Needed an isect_line_tri_epsilon function for similar reason.

Fixes last part of bug #35002. Other knife bugs still present but
getting this commit in now before continuing bug fixing.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59665 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles Standalone: 
* Fix compiler warning, == / = mismatch. 

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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59667 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #36611: cycles issue loading png file with 2 channels.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59668 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #36609: glsl materials with reroute nodes not working correct.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59669 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles / Standalone:
* Standalone can now be compiled without the GUI, making the glut dependency optional. 

Added WITH_CYCLES_STANDALONE_GUI cmake flag. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59670 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for [#36610] The new sky model produces strange results
* Clamp theta sky coordinates, to prevent a negative solarElevation. 

Note: This means that you cannot get absolute night with the new model, but this is not supported anyway. So when you reach the maximum sunset, use the World Strength to further decrease the light. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59671 954f8c5b-7b00-dc11-b283-0030488c597c
use CMAKE_DL_LIBS rather then linking libdl directly.
added to cycles standalone too.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59673 954f8c5b-7b00-dc11-b283-0030488c597c
mempool internal change, use unsigned ints where possible (less overhead),
also quiet compiler warning for BLI_LINKSTACK_FREE macro.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59674 954f8c5b-7b00-dc11-b283-0030488c597c
remove unnecessary check in BLI_mempool_iterstep and add doxygen comments to mempool.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59675 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #36137: cycles render not using all GPU's when the number of GPU's is larger
than the number of CPU threads

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