forked from bartvdbraak/blender
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:
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;
|
||||
|
Loading…
Reference in New Issue
Block a user