bump to version '2.67a'


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

* Fix crash on 2d painting when no active object is present (NULL
pointer dereference in cursor drawing)
* Skip conditional on space_stroke function, since this is already
checked for on higher level.
* Interpolate pressure on spaced strokes.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56892 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35404: crash in file save with python code that accesses mesh from panel.

On file save the mesh gets loads from the editmesh but the derived mesh caches
wer not cleared. This usually happens through the depsgraph but it needs to be
done manually here. Most changes are some refactoring to deduplicate derived
mesh freeing code.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56893 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35390: sequencer end frame of preview range was not drawing correct.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56894 954f8c5b-7b00-dc11-b283-0030488c597c
Code cleanup / Cycles:
* Simplify shaperadius() function a bit to avoid castings.
* Style cleanup 1.f -> 1.0f, to follow rest of Cycles code. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56895 954f8c5b-7b00-dc11-b283-0030488c597c
Painting / Sculpting: more tweaks to pressure sensitivity

* Also do pressure interpolation for brush size and spacing.
* Do smoothing of pressure when smooth stroke and sample average is enabled.
* Revert the OS X specific pressure change to pressure ^ 2.5, for low pressure
  values like 0.05 it makes the pressure 100x lower, which is problematic. If
  we need to adjust the pressure curve it should be done for all platforms.

Still weak:

* Pressure of first touch on tablet is difficult to control, usually it's low
  which makes the stroke start out small or soft, but other times not. Finer
  event capturing at ghost level would help, along with pressure changes without
  mouse movement, but this may also need different paint stroke logic.
* Brush radius is rounded to integers, this gives noticeable stepping.
* Brush falloff is not antialiased, gives noticeable aliasing for small brush
  sizes which was always a problem, but is more common with size pressure control.

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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56897 954f8c5b-7b00-dc11-b283-0030488c597c
Comment out coordinates mapping made in rev55469

Such mapping only worked foe compositor output node
(with some issues btw) and failed dramatically for
nodes like previews and viewers.

For now let's behave the same way as border+crop
worked in 2.66 for until proper feature support
is ready (which could take some time).

Fixes #35313: object and ID anti-aliased masks get messed up
              when using border render + crop

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56898 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles / OSL:
* Added Westin Sheen and Westin Backscatter closures for testing, useful for Cloth like effects. 

Only available via OSL, added an example OSL shader to the Templates (Text Editor). 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56900 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for #35373, calling any paint operator from operator search menu
with mouse crashes blender.

Issue here is that paint operator invocation, immediately calls modal,
which checks if event is the same as initialization event plus keyup.
Since using the mouse on amenu calls the operator on mouse button up,
the operator ended immediately and that cause immediate cleanup and
crash,

Worked around this by forbidding the operator to finish on first modal
call (which is expected by all the asserts on invoke anyway). This
prevents the crash but requires an extra up event to end.

Also, ported part of Jason Wilkins' patch to stroke code to allow for
stroke sampling to be done before a dab is first performed and as soon
as the stroke begins

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56901 954f8c5b-7b00-dc11-b283-0030488c597c
Fix crash due to shared paint cursor function. It is necessary to check
if we really are in sculpt mode context since the active object may be
in sculpt mode while cursor is in the 2d paint editor.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56902 954f8c5b-7b00-dc11-b283-0030488c597c
Optimizations for dyntopo
- creating faces was unnecessarily checking if they already existed.
- deleting a face did edge-lookups, when the edges are already available from the face-loops.


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