forked from bartvdbraak/blender
Bug #22585
Using texture nodes for displacement crashes, a conflict between using nodes in render and for displacement at same time. Code simply disables texture nodes for displacement for now, until we have better handling for it. (on our long todo)
This commit is contained in:
parent
3ad21a8b4c
commit
2153c663be
@ -1348,9 +1348,16 @@ int multitex_mtex(ShadeInput *shi, MTex *mtex, float *texvec, float *dxt, float
|
||||
|
||||
/* Warning, if the texres's values are not declared zero, check the return value to be sure
|
||||
* the color values are set before using the r/g/b values, otherwise you may use uninitialized values - Campbell */
|
||||
/* extern-tex doesn't support nodes (ntreeBeginExec() can't be called when rendering is going on) */
|
||||
int multitex_ext(Tex *tex, float *texvec, float *dxt, float *dyt, int osatex, TexResult *texres)
|
||||
{
|
||||
return multitex_nodes(tex, texvec, dxt, dyt, osatex, texres, 0, 0, NULL, NULL);
|
||||
int use_nodes= tex->use_nodes, retval;
|
||||
|
||||
tex->use_nodes= 0;
|
||||
retval= multitex_nodes(tex, texvec, dxt, dyt, osatex, texres, 0, 0, NULL, NULL);
|
||||
tex->use_nodes= use_nodes;
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
Loading…
Reference in New Issue
Block a user