Blender Git Commit Log

Git Commits -> Revision a18d89e

Revision a18d89e by Lukas Toenne (master)
September 23, 2013, 08:57 (GMT)
Fix #36790, OSL point parameters of shader nodes not initialized correctly from UI inputs.
normal and point parameter types of OSL shaders are creating SOCK_VECTOR sockets in the script node. When these sockets are in turn used to define the fixed input values for these parameters they get
converted as OSL vector always, losing the distinction of vector/normal/point. To prevent OSL rejecting the value due to type mismatch, explicitly define the parameter defaults in the OSL script node
compiler function as vector, normal and point (unused types will simply be ignored).

Commit Details:

Full Hash: a18d89e14f6498e2733be6d7a06f6371b6e26c91
SVN Revision: 60325
Parent Commit: 826a7db
Lines Changed: +22, -0

1 Modified Path:

/intern/cycles/render/nodes.cpp (+22, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021