Fix T49937: Blender is crashing because of Lamp Data Node
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 8 Nov 2016 09:40:21 +0000 (10:40 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 8 Nov 2016 09:40:21 +0000 (10:40 +0100)
commit508e2f0d694812b244ffdf22325337aa32f918ad
treeacc9fa787762d0fe7642d12a756aef5a5eab7657
parentf19f9be1b92157a105112ecc9c28949d34d94994
Fix T49937: Blender is crashing because of Lamp Data Node

Lamp Data node requires shadow sample array which is only enabled when
Shadows are enabled in the shading settings.

This commit prevents crash but might not give expected render results
in such a configuration.
source/blender/render/intern/source/shadeoutput.c