Cycles / OSL:
* Ray Length is now available in OSL (via get_attribute)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51374 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles / OSL:
* Add Light Falloff Node. 


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51376 954f8c5b-7b00-dc11-b283-0030488c597c
style cleanup: make OSL follow our C style convention. http://wiki.blender.org/index.php/Dev:Doc/CodeStyle


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51377 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: add check spelling osl


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51378 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup:
- move object_iterators.c --> view3d_iterators. (ED_object.h had to include ED_view3d.h which isn't so nice)
- move projection functions from view3d_view.c --> view3d_project.c (view3d_view was becoming a mishmash of utility functions and operators).
- some some cmake includes as system-includes.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51379 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #32887, ParticleInstance: crash with hidden particle system + children.

The issue here is that the particle instance modifier (pimd) accesses data from the linked particle system modifier (psmd). This data is only correctly generated when the psmd is enabled; here the design violates the modifier principle of providing valid object data (or rather DM) even when disabled.

The solution in this case is to make a custom isDisabled check for the pimd to see if the psmd is enabled. This means the pimd won't work for disabled psmd, but doesn't crash.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51380 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #32856, Crash in compositor due to deprecated node socket flag in old files.

Bit flag 5 has apparently been used for another purpose in old versions, then deprecated and was actually removed from DNA (this should never be done), then later it got reused for SOCK_DYNAMIC. Now a one-time check to clean up these flags is done in do_versions.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51381 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for OSL 'background' attributes (attributes that are not associated to a particular object). Atm this is only the 'ray_length' attribute.
Background attributes are used as fallback in two cases:
1) Non-object light samples (e.g. lamp shaders)
2) Fallback if no implicit object attribute can be found

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51382 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles: add Tangent input for Anisotropic BSDF.

Also refactor SVM BSDF code, preparing it to be shared with OSL.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51383 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles: motion blur is now curved and passes exactly through the midpoint.

Previously it would only interpolate between the previous and next frame,
which meant it might not hit the current frame position.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51384 954f8c5b-7b00-dc11-b283-0030488c597c
Render: local light group option for materials, blender internal feature from
the render branch.

When a material is linked in and has a light group override, this can now use
a local group in the scene file, by replacing the linked light group with a
local group that has the same name. A use case might be controlling the specular
highlight on linked character's eyes per scene.

Patch from render branch by Pablo Vazquez.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51385 954f8c5b-7b00-dc11-b283-0030488c597c
add a template for a stub script - runs the script relative to the currently open blend file.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51386 954f8c5b-7b00-dc11-b283-0030488c597c
minor changes
- stub from last commit was incorrect (copied old docs)
- decimator was making copy of quadric for no reason.
- correct typo


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51387 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles / OSL:
* Layer Weight is now available in OSL. 


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51388 954f8c5b-7b00-dc11-b283-0030488c597c
Missing semicolons in intern/ghost/intern/GHOST_WindowCocoa.mm

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51389 954f8c5b-7b00-dc11-b283-0030488c597c
Fix cycles motion blur not working correct with shutter time > 2.0. The soft
limit is 2.0, and anything beyond that is extrapolation which might not work
so well but is still allowed.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51390 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles: Sensible limmits for Sky Texture turbidity value


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51391 954f8c5b-7b00-dc11-b283-0030488c597c
Maybe hard limmit is good enough. Removing soft limmit for sky turbidity


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51392 954f8c5b-7b00-dc11-b283-0030488c597c
Attempts to fix CUDA issues on sm 2.0 cards, still no luck getting motion blur
working, but this should make it not crash.

Also fix for wrong shutter time, should have been shorter.

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