Fix T44222: Crash using pointiness attribute for volume shaders
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 6 Apr 2015 09:11:28 +0000 (14:11 +0500)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 6 Apr 2015 09:11:28 +0000 (14:11 +0500)
commit3639a70eaec1d49e5634f2cd5f6d4ecb7d79ef14
treef91662feb6d3e506898f3aa67a98272e33cea9f7
parenta9bb8d8a73cad2edd96297c868ae3a3ab4b04e27
Fix T44222: Crash using pointiness attribute for volume shaders

This attribute is not really supported for volumes, so it get's converted to
constant 0 at shader compile time.

TODO: We should consider doing the same for tangent attribute in order to save
some annoying checks at tracing time.
intern/cycles/render/nodes.cpp