Cycles / Wireframe node:

* Make sure we have valid geometry data, fixes a crash with Lamp objects.

Reported by lichtwerk in IRC, thanks!
This commit is contained in:
Thomas Dinges 2013-05-25 13:34:21 +00:00
parent 092d9c31a1
commit 9bf7a2a8c4

@ -45,9 +45,9 @@ __device void svm_node_wireframe(KernelGlobals *kg, ShaderData *sd, float *stack
/* Calculate wireframe */
#ifdef __HAIR__
if (sd->segment == ~0) {
if (sd->prim != ~0 && sd->segment == ~0) {
#else
{
if (sd->prim != ~0) {
#endif
float3 Co[3];
float pixelwidth = 1.0f;