Fix #37192, Rendered preview causes crash when deleting a material node in shader node editor. The 'free' callback for node execution data was accessed from the node->typeinfo, but this pointer can
become invalid because the render database is not immediately freed after the job finishes. To avoid access to dangling node pointers, store the function callback in the exec data itself. The node
pointer must not be accessed in the free function (wasn't used before either), these functions are purely for the execution data.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60997 954f8c5b-7b00-dc11-b283-0030488c597c
Make anim system safer for threading

Remove usages of ANIM_unit_mapping_apply_fcurve in favor of
runtime scale factor apply.

There're still calls to ANIM_nla_mapping_apply_fcurve are
hanging around, they're the next t be cleaned up!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60998 954f8c5b-7b00-dc11-b283-0030488c597c
Project Pampa request: FCurves normalized display

Added two options to a header of FCurve editor:

- Normalize which makes it so every individual
  curve is fit into -1..1 space.

- Auto-normalize, which probably is to be called
  "Lock" which "locks" curve normalization scale.
  This is useful to prevent curves from jumping
  around when tweaking it.

It's debatable whether it need to be a button to
normalize curves n purpose only, and it's fully
depends on animator's workflow.

Here during Project Pampa we've got Francesco
who get used to auto-renormalization and Hjalti
who prefers locked behavior.

Docs are to be ready soon by Francesco.
Thanks Brecht for the review!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60999 954f8c5b-7b00-dc11-b283-0030488c597c
Code cleanup: use bool instead of int in mask module

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@61000 954f8c5b-7b00-dc11-b283-0030488c597c
Code cleanup: more int->bool conversions mask module

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