Fix for r51837.
* mat->nodetree is accessed regardless of whether or not the material node is in use- Patch provided by Tamito Kajiyama, thanks!
This commit is contained in:
@@ -591,6 +591,8 @@ void BKE_text_unlink(Main *bmain, Text *text)
|
||||
/* nodes */
|
||||
for (mat = bmain->mat.first; mat; mat = mat->id.next) {
|
||||
ntree = mat->nodetree;
|
||||
if (!ntree)
|
||||
continue;
|
||||
for (node = ntree->nodes.first; node; node = node->next) {
|
||||
if (node->type == SH_NODE_SCRIPT) {
|
||||
Text *ntext = (Text *)node->id;
|
||||
|
Reference in New Issue
Block a user