text editor reload no-longer resets scroll & cursor - annoying when making tweaks to UI scripts.
also restrict freestyle hack to WITH_FREESTYLE define.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56101 954f8c5b-7b00-dc11-b283-0030488c597c
add interp_v3_v3v3v3_uv() to use for use with uv value from isect_ray_tri_v3(), rename tree -> bmtree for BMBVHTree.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56102 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: bmesh bvh
- remove unused members from BMBVHTree
- move per-raycast vars from BMBVHTree into per-callback structs (weren't threadsafe).
- simplify BKE_bmbvh_find_vert_closest().


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56103 954f8c5b-7b00-dc11-b283-0030488c597c
add function BKE_bmbvh_find_face_segment()
given a segment, finds finds an intersecting faces from the first point to the second, needed for checking self intersections (not used yet).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56104 954f8c5b-7b00-dc11-b283-0030488c597c
Added back the basic Search operator to the node Add menu. This operator should be implemented a bit nicer using the new categories system as well, but for now works just as before.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56105 954f8c5b-7b00-dc11-b283-0030488c597c
display options to help with 3d printing.

editmesh debug info,
- overhang (with axis angle options)
- wall thickness (with min/max distance)
- self-intersections.

access below 'Mesh Display' panel.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56106 954f8c5b-7b00-dc11-b283-0030488c597c
Don't use auto vectorization for MinGW-w64. It may be a source for
trouble. Also fixed a few harmless warnings.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56107 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles Hair: Corrected own stochastic hair rng mistake and removed an unnecessary padding variable

- Corrected the Sobol dimension and removed a pad variable in Curve Struct.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56108 954f8c5b-7b00-dc11-b283-0030488c597c
Bug fix #34974

The open region indicator (with +) didn't do alpha blending properly, so it wasn't
visible for any theme color.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56110 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for render results acquire/release in viewport render, should only release
after drawing to be thread safe.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56111 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35004: fireflies with .tif image in cycles, try to avoid extreme values when
openimageio can't detect premul/straight alpha correct.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56112 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles: initialize LCG for sss and hair sampling without using the sobol sampler,
slightly faster but also fixes the u/v sampling dimensions not longer being at even
values which is needed for best results.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56113 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for node editor lib_link and memfile restore (undo): The snode->nodetree/first tree path pointer was not properly mapped on file load due to the fact that it's stored locally in other ID data blocks. Undo was restoring the pointer correctly, but used an ugly hack. Now the SpaceNode->id pointer is linked first, then the datablock is checked for an internal node tree, which is then used instead of trying to lib-link the node tree pointer.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56114 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for #34911, Compositor with multiple views autozooms to node when creating a link. In order to allow node trees have different offsets in different editor instances, the view_center is now stored primarily in the bNodeTreePath struct for each tree in a node space. The view_center in bNodeTree is only used as an initial setting when opening a node group or switching node trees.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56115 954f8c5b-7b00-dc11-b283-0030488c597c
Fix thumbnails not appearing on MinGW64, was actually a mistake on
MinGW-w64 headers (where _stat is actually _stati64), but since we
recommend a specific compiler build it's OK for now. Also tweaked other
places where _wstat is used.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56116 954f8c5b-7b00-dc11-b283-0030488c597c
Turn OpenMP on for MinGW, it works the 32 bit compiler.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56117 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles: code refactoring to deduplicate the various BVH traversal variations.
Now there is a single BVH traversal code with #ifdefs for various features.
At runtime it will then select the appropriate variation to use depending if
instancing, hair or motion blur is in use.

This makes scenes without hair render a bit faster, especially after the
minimum width feature was added. It's not the most beautiful code, but we can't
use c++ templates and there were already 4 copies, adding 4 more to handle the
hair case separately would be too much.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56118 954f8c5b-7b00-dc11-b283-0030488c597c
Support object scale for mesh display options. (currently only uniform scale for thickness test)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56119 954f8c5b-7b00-dc11-b283-0030488c597c
fix for BMBVH_USE_CAGE option,
knife tool with modifier was broken when modifier cage was used.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56120 954f8c5b-7b00-dc11-b283-0030488c597c
bmbvh was allocating an array for vert coords but not using it, removed.
also use generic name for callback data.


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