avoid divide by zeto in node preview drawing.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59908 954f8c5b-7b00-dc11-b283-0030488c597c
missing NULL check in recent commit, also skip some calculations in mean_value_half_tan functions for degenerate cases.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59912 954f8c5b-7b00-dc11-b283-0030488c597c
changes to grid fill
- use 4 weights for vertex customdata blending (was previously only using 2)
- option for simple blending, which blends locations using weights too and doesn't attempt to maintain the shape,
  useful for flat surfaces or times when keeping the shape gives odd results.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59913 954f8c5b-7b00-dc11-b283-0030488c597c
use strict flags for gridfill, use unsigned ints.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59914 954f8c5b-7b00-dc11-b283-0030488c597c
Usual blenderplayer stub fix... ;)

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59915 954f8c5b-7b00-dc11-b283-0030488c597c
shrink-wrap constraint, improve and remove some limitations.
- ability to change the space the axis is projected in (so you can choose worldspace or -space, was always local-space before).
- support projecting on a negative axis, without this some very simple clamping is not possible if the direction happened not to be positive.
- add distance limit (same as modifier), without this single meshes surrounding an object would make the constraint impossible to use in some cases (it would snap to the wrong side).

note: this removes the ability to project on multiple axes at once but this option only added up directions and didnt project on multiple axes as you might expect.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59916 954f8c5b-7b00-dc11-b283-0030488c597c
Code cleanup: us commented out arg names rather than leaving them if unused

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

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59919 954f8c5b-7b00-dc11-b283-0030488c597c
Woops, harmless typo in previous commit

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59920 954f8c5b-7b00-dc11-b283-0030488c597c
patch [#36633] Correct headers for renders saved as bitmap (.bmp) format.
by Brandon Northcutt (occamsdream)

Blender was writing invalid bitmaps that imagemagick and ffmpeg couldn't read.


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59922 954f8c5b-7b00-dc11-b283-0030488c597c
update bmesh doxy docs, remove double-promotion warnings in remove-strict-flags cmake macro.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59923 954f8c5b-7b00-dc11-b283-0030488c597c
Some fixes to tips...

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59924 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles:
* Fix some compile errors, when building without Branched Path. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59925 954f8c5b-7b00-dc11-b283-0030488c597c
Changes to Freestyle default parameters:
- The "Same Object" chaining option enabled (see follow-up discussions in Bug #36629).
- Sphere radius set to 0.1 (was 1.0 resulting in a longer computation time).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59926 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles:
* Refactor PathState struct and functions into its own file. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59927 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: warnings and redundant checks.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59928 954f8c5b-7b00-dc11-b283-0030488c597c
screw tool used uninitialized normal to detect flipping direction.

lookes like bug from bmesh merge, restored from 2.4x.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59929 954f8c5b-7b00-dc11-b283-0030488c597c
Code cleanup: Minor function capitalization fix


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@59931 954f8c5b-7b00-dc11-b283-0030488c597c
move mesh evaluation functions (normal, mapping, smooth group... etc, calculations) into mesh_evaluate.c.
mesh.c was over 4k lines and complex functions mixed in with general library management.


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