Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Toenne <lukas.toenne@googlemail.com>2013-09-23 12:57:02 +0400
committerLukas Toenne <lukas.toenne@googlemail.com>2013-09-23 12:57:02 +0400
commita18d89e14f6498e2733be6d7a06f6371b6e26c91 (patch)
tree6f2b9736257bcf11e0c6bd3fe9b48e10cfff3488 /release/scripts/startup
parent826a7db5c06c809defe8108d2532c7290cda7fef (diff)
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).
Diffstat (limited to 'release/scripts/startup')
0 files changed, 0 insertions, 0 deletions