Fix own mistake unlinking text (recent commit)

This commit is contained in:
Campbell Barton
2015-02-03 16:39:32 +11:00
parent 27cfd291c6
commit 32125c40d3

View File

@@ -606,7 +606,7 @@ void BKE_text_unlink(Main *bmain, Text *text)
}
}
for (te = bmain->tex.first; mat; mat = mat->id.next) {
for (te = bmain->tex.first; te; te = te->id.next) {
ntree = te->nodetree;
if (!ntree)
continue;