Cleanup for last commit

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

Modify calculation of sculpt plane to only take into account forward
facing vertices. This will solve cases where sculpting on a volume with
the two sides of the mesh inside the brush radius could move the sculpt
plane inside the mesh volume.

To completely fix the issue where the mesh would "stick" the two sides
of the mesh together on the sculpt plane (for instance for clay strip
brushes), user should enable "front face only". Perhaps some brushes,
like clay strips should enforce this and not present the option in the
first place.

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

* Cleanup for previous commit and reduce some local variable referencing
* Add support for brushes that operate on frontfaces only and do not
show the option for those brushes. Currently only clay strips is in the
list but this may change according to artist feedback. This should take
care of the "sticky" surface problem completely.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60122 954f8c5b-7b00-dc11-b283-0030488c597c
minor changes needed for building standalone mathutils.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60126 954f8c5b-7b00-dc11-b283-0030488c597c
fix weird issue after last commit where grab brush would not work and
also warnings fix and description fix.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60128 954f8c5b-7b00-dc11-b283-0030488c597c
Ouch, real fix for previous bug. Sorry for that.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60129 954f8c5b-7b00-dc11-b283-0030488c597c
BGE: Adding a Python collision API. The initial patch was provided by agoose77, with some edits by me.

KX_GameObject now has a collisionCallbacks list which is a list of callables that are called when a collision occurs. The callables will be called with an argument that contains a reference to the other object involved in the collision (i.e., not self).

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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60136 954f8c5b-7b00-dc11-b283-0030488c597c
minor style clanup and use more meaningful name for 3DCONNEXION source code.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60139 954f8c5b-7b00-dc11-b283-0030488c597c
OSX/cmake: don't try get xcode path from xcode before 4.3, developer dir was not bundled in this case

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60140 954f8c5b-7b00-dc11-b283-0030488c597c
- update bl_run_operators.py for change in blender.
- rename curve delete operator vertices enum to match mesh delete operator.
- add missing NULL checks to view3d_lock_poll() to prevent crashes when called outside a view3d.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60142 954f8c5b-7b00-dc11-b283-0030488c597c
replace BLI_edgehash_insert with BLI_edgehash_reinsert for explode operator, was inserting the same edges more then once.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60143 954f8c5b-7b00-dc11-b283-0030488c597c
use stack memory for deform weight interpolation.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60144 954f8c5b-7b00-dc11-b283-0030488c597c
use mpolys rather then tessfaces for crazy-space calculation. (was a todo since merging bmesh)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60145 954f8c5b-7b00-dc11-b283-0030488c597c
OSX/cmake: fix config by moving code back into xcode conditional, cmake/makefiles does not even have xcode_vesion lookup

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60146 954f8c5b-7b00-dc11-b283-0030488c597c
modify crazyspace_get_mapped_editverts to work like crazyspace_set_quats_mesh
- array of quats is now aligned with the vertices (over alloc, it simplifies things and removes need to set invalid index values).
- remove visit-bitmap from crazyspace_get_mapped_editverts(). setting coords multiple times isnt bad.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60147 954f8c5b-7b00-dc11-b283-0030488c597c
use crazy-space when modifiers_isCorrectableDeformed() fails,
without this. warp modifier for eg didnt use crazy-space.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60148 954f8c5b-7b00-dc11-b283-0030488c597c
Fix [#36727] Curve Object Scaled to 0 + Freestyle = Crash

Division by zero...

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60150 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles Hair: Two basic bair shaders added

A new hair bsdf node, with two closure options, is added. These closures allow the generation of the reflective and transmission components of hair. The node allows control of the highlight colour, roughness and angular shift.

Llimitations include:
-No glint or fresnel adjustments.
-The 'offset' is un-used when triangle primitives are used.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60151 954f8c5b-7b00-dc11-b283-0030488c597c
move editcurve add functions into their own source file editcurve_add.c


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