Fix crash in texture nodes, when no derivatives available, other nodes already
did this check.
This commit is contained in:
@@ -54,8 +54,14 @@ static void colorfn(float *out, TexParams *p, bNode *node, bNodeStack **in, shor
|
|||||||
float co[3], dxt[3], dyt[3];
|
float co[3], dxt[3], dyt[3];
|
||||||
|
|
||||||
copy_v3_v3(co, p->co);
|
copy_v3_v3(co, p->co);
|
||||||
copy_v3_v3(dxt, p->dxt);
|
if (p->osatex) {
|
||||||
copy_v3_v3(dyt, p->dyt);
|
copy_v3_v3(dxt, p->dxt);
|
||||||
|
copy_v3_v3(dyt, p->dyt);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
zero_v3(dxt);
|
||||||
|
zero_v3(dyt);
|
||||||
|
}
|
||||||
|
|
||||||
if(node->custom2 || node->need_exec==0) {
|
if(node->custom2 || node->need_exec==0) {
|
||||||
/* this node refers to its own texture tree! */
|
/* this node refers to its own texture tree! */
|
||||||
|
Reference in New Issue
Block a user