auto-generated py api now shows bpy.context.* items in the 'References' section of each type.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51829 954f8c5b-7b00-dc11-b283-0030488c597c
remove unneeded string in datatoc.c and correct some of the context types in our documentation.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51830 954f8c5b-7b00-dc11-b283-0030488c597c
Preparation to use boost::shared_ptr.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51831 954f8c5b-7b00-dc11-b283-0030488c597c
Bugfix (own collection)

Adding new image texture to Meshes didn't initialize UVs to 0-1 default.
This makes initial display of textures on meshes not work.

This fixes my favorite demo case: Open Blender, drop image from desktop on cube.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51833 954f8c5b-7b00-dc11-b283-0030488c597c
BPY/RNA: determine callback functions that are allowed to write data by a flag
on the function instead of checking the name.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51834 954f8c5b-7b00-dc11-b283-0030488c597c
RNA/C++: string property writing was missing.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51835 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles OSL: refactoring and fixes

* Moved kernel/osl/nodes to kernel/shaders
* Renamed standard attributes to use geom:, particle:, object: prefixes
* Update stdosl.h to properly reflect the closures we support
* Fix the wrong stdosl.h being used for building shaders
* Add geom:numpolyvertices, geom:trianglevertices, geom:polyvertices attributes

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51836 954f8c5b-7b00-dc11-b283-0030488c597c
Render API: shader script node for custom shaders.

* Shader script node added, which stores either a link to a text datablock or
  file on disk, and has functions to add and remove sockets.
* Callback RenderEngine.update_script_node(self, node) added for render engines
  to compile the shader and update the node with new sockets.

Thanks to Thomas, Lukas and Dalai for the implementation.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51837 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles OSL: shader script node

Documentation here:
http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/OSL
http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.65/Cycles

These changes require an OSL build from this repository:
https://github.com/DingTo/OpenShadingLanguage

The lib/ OSL has not been updated yet, so you might want to keep OSL disabled
until that is done.

Still todo:
* Auto update for external .osl files not working currently, press update manually
* Node could indicate better when a refresh is needed
* Attributes like UV or generated coordinates may be missing when requested from
  an OSL shader, need a way to request them to be loaded by cycles
* Expose string, enum and other non-socket parameters
* Scons build support

Thanks to Thomas, Lukas and Dalai for the implementation.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51838 954f8c5b-7b00-dc11-b283-0030488c597c
use library argument for bpy.path.abspath in case of linked nodes.


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51840 954f8c5b-7b00-dc11-b283-0030488c597c
RNA C++: collections functions are now properly handled, meaning it is now
possible to call BlendData.meshes.remove() directly.

It requires special order of classes in header file (namely classes used for
collection functions should be declared before collection properties with this
classes are declared). Currently used naive linear search for this, could be
replaced with hash or bisect, but for now performance here is not an issue.

Patch by Sergey, but committing now because it's needed for next commit.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51841 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles: use mikktspace now for computing tangents from UV maps. This avoids ugly
averaged tangents at UV seams but instead now the seams will show as discontinuities
in the tangent.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51842 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: cmake - add missing headers, remove directories from source listing.

also remove logImageLib.c - empty file.


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51844 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: float <> double conversion.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51845 954f8c5b-7b00-dc11-b283-0030488c597c
OSL / Filebrowser:
* Add .osl extension to the TEXTFILE filter, so .osl files will show up when the filter is enabled. (Text Editor -> Open Text Block)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51846 954f8c5b-7b00-dc11-b283-0030488c597c
Ton's last do_versions commit got rid of do_versions code for collision masks. Adding it back in so collision in the BGE work again.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51849 954f8c5b-7b00-dc11-b283-0030488c597c
Node UI:
* Add 3 more operators to the Node menu.

node.join [join selected nodes in a new frame]
node.detach [remove selected nodes from their frame]
node.links_detach [remove all links to selected nodes and try to reconnect neighboring nodes together]

Patch by Philipp Oeser, thanks! 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51850 954f8c5b-7b00-dc11-b283-0030488c597c
3D View UI:
* Patch [#33073] Remove Extra Menu Level from Object Parent and Track
* Did not commit the icon changes here, separator line should be sufficient. 

Patch by Harley Acheson, thanks!

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