A number of changes to node RNA and the file output node, to simplify socket types and make node code more robust for future nodes with extra socket data.

* Removed the struct_type identifier from sockets completely. Any specialization of socket types can be done by using separate collections in RNA and customized socket draw callbacks in node type. Sockets themselves are pure data inputs/outputs now. Possibly the sock->storage data could also be removed, but this will change anyway with id properties in custom nodes.

* Replaced the direct socket button draw calls by extra callbacks in node types. This allows nodes to draw sockets in specialized ways without referring to the additional struct_type identifier. Default is simply drawing the socket default_value button, only file output node overrides this atm.

* File output node slots now use a separate file sub-path in their storage data, instead of using the socket name. That way the path is an actual PROP_FILEPATH property and it works better with the UI list template (name property is local to the data struct).

* Node draw contexts for options on the node itself and detail buttons in the sidebar now have an extra context pointer "node" (uiLayoutSetContextPointer). This can be used to bind operator buttons to a specific node, instead of having to rely on the active/selected node(s) or making weak links via node name. Compare to modifiers and logic bricks, they use the same feature.

* Added another operator for reordering custom input slots in the file output node.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@46175 954f8c5b-7b00-dc11-b283-0030488c597c
Fix: recent commit setting python3.2 command should not be applied to this file
scons build scripts are still using python2.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@46177 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #31230: Grid primitive changes size with changing resolution

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@46178 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #31168: cycles mask layer should only affect objects for camera rays.
Fix: texture coordinate normal output was not correct, still changed under
object transform.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@46179 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #31102: changing scene.use_color_management from render_pre callback would crash.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@46180 954f8c5b-7b00-dc11-b283-0030488c597c
Fix 31220: glsl sun lamp shadows did not apparently respect shadow flag when
working in blender render rather than blender game mode. Tweaked the flags a
bit to make it compatible more, but for full configuration you need to be in
blender game mode still.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@46181 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #31199 & #31112: cycles not working well with vertex/weight paint selection
mask drawing.

Now refactored the code a bit so that in no longer calls textured mesh drawing
for the face mask drawing, just handle it as part of regular paint color drawing.
Should also make the blender internal behavior more logical where it would start
showing textures in solid mode when enabling face masking.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@46183 954f8c5b-7b00-dc11-b283-0030488c597c
bmesh: use fixed stack size for face flipping array.

also quiet unused var warnings


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@46184 954f8c5b-7b00-dc11-b283-0030488c597c
Python/context: allow overriding window/screen/area/region context for running operators
from python, this is useful to run an operator in a particular place in the UI.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@46185 954f8c5b-7b00-dc11-b283-0030488c597c
Fix crash setting area.type from a context that not include the right window,
ideally this function should become context free, for now just trick it to
execute in the right context.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@46186 954f8c5b-7b00-dc11-b283-0030488c597c
Python: documentation about overriding context members.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@46187 954f8c5b-7b00-dc11-b283-0030488c597c
Python/context: tweak code further so that when you set screen/area/region
from python, it actually gets data context from there as well.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@46188 954f8c5b-7b00-dc11-b283-0030488c597c
CMake: Fix to install numpy (source dir was "hardcoded", rather use PYTHON_NUMPY_PATH), was failing under Debian testing.

Note that there is still a problem, destination ("site-packages") is not in blender's python path, so you have to edit sys.path before being able to import numpy... but at least it installs again.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@46190 954f8c5b-7b00-dc11-b283-0030488c597c
Fixes for recent cycles and python/context commits.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@46191 954f8c5b-7b00-dc11-b283-0030488c597c
Fix: --debug-python command option was not working correct.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@46192 954f8c5b-7b00-dc11-b283-0030488c597c
Small enhancement to Fast Gaussian compo blur node: do not compute when size is below 0.001!

(Was already checked/done for other blur algos, can be annoying when you animate the blur size to apply it only on a few frames.)

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@46193 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #31236: linking a socket of a different type to an existing node group output
would crash, did not convert default value storage correctly.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@46194 954f8c5b-7b00-dc11-b283-0030488c597c
Fix wrong unified weight paint value version patch, was doing incorrect version check.
Fix #31209: weight paint sample & fill not using correct brush/unified value.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@46195 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #31190: mirror modifier caused non-planar quads to be split differently on
the other side, now keep the first vertex of the polygon the same to avoid this.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@46196 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #31176: Collada model shows weird textures in editmode

Issue with multimaterial meshes and mface to mpoly conversion being before assignment of materials (which is done on meshobject instancing?).
Added explicit bmesh conversion to MeshImporter which is called from DocumentImporter::import.



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