Enable multires bake to level 0

Uses trick with crating simple subdivided mesh with
level 1 and bakes against it.

From quick tests seems to be working correct, more
tests are welcome.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60994 954f8c5b-7b00-dc11-b283-0030488c597c
Code cleanup: remove unused block from multire baker

Mapping from grid on ll 0 was not used and was incorrect
since bmesh merge anyway.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60995 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#37250] dynotopo initial triangulation

hmrf arguments order was wrong ... but int/bool casting made it pass
through the compiler

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60996 954f8c5b-7b00-dc11-b283-0030488c597c
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
Lasso select tool for masking in sculpting. Initial code, non optimized
for now.
Used to be ultra terrible but with threading (openmp) there is slightly
better performance
and is ready for testing. To use press shift-ctrl-lclick. Still no
ability to
remove mask. Coming soon.

Also make box selection threaded (openmp) and comment fix.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@61002 954f8c5b-7b00-dc11-b283-0030488c597c
Some comment fixes, add new sculpt masking operators to menus

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@61003 954f8c5b-7b00-dc11-b283-0030488c597c
Optimization of lasso masking using scanfill.

Thanks to Campbell for the advice!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@61004 954f8c5b-7b00-dc11-b283-0030488c597c
One more optimization for lasso, clip PBVH against object space planes
of lasso enclosing rectangle.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@61005 954f8c5b-7b00-dc11-b283-0030488c597c
Add some update notifiers for a few boolean paint properties (probably a
lot more needed) so that they get properly updated in UI when the
property is edited through python or a custom key binding to context
toggle operator.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@61006 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #37252: Mask modifier doesn't copy settings on object copy

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@61007 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #37194, OSL script crashes blender. The lookup functions for finding Cycles shader inputs/outputs based on socket names are using a few modifications on the Blender socket names. But these only apply
to standard nodes where the Blender socket names can differ from associated Cycles names and may require additional indices to make them unique. Script node sockets are already unique and exact due to
being generated from the script function parameters.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@61008 954f8c5b-7b00-dc11-b283-0030488c597c
revert own commit r60607, caused bug [#37253]


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

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@61010 954f8c5b-7b00-dc11-b283-0030488c597c
Bugfix [#37185] Maya Config: Move and Scale Don't Work In Dope Sheet

Maya keymap was activating wrong transform modes for translation/scaling - in
DopeSheet and NLA, these use the TIME_TRANSLATE/TIME_SCALE modes instead



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@61011 954f8c5b-7b00-dc11-b283-0030488c597c
Add .webm to the list of extensions recognized as video
(Patch by Philipp Oeser, submitted in [#37199], many thanks)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@61013 954f8c5b-7b00-dc11-b283-0030488c597c
fix for uninitialized value use in newly added fcurve normalized view.
also quiet warning without openmp.


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