Fix T85865: Crash when selecting Image texture node

Typo in rB7470c10601d0.

Maniphest Tasks: T85865

Differential Revision: https://developer.blender.org/D10496
This commit is contained in:
Philipp Oeser 2021-02-22 10:06:16 +01:00
parent b1142858d4
commit e497c1b93c
Notes: blender-bot 2023-02-14 02:13:08 +01:00
Referenced by issue #85911, Adding video or audio to VSE Sequencer crashes Blender
Referenced by issue #85865, Crash when selecting Image texture node
1 changed files with 1 additions and 1 deletions

View File

@ -703,7 +703,7 @@ void ED_node_set_active(Main *bmain, bNodeTree *ntree, bNode *node, bool *r_acti
}
}
LISTBASE_FOREACH (World *, wo, &bmain->materials) {
LISTBASE_FOREACH (World *, wo, &bmain->worlds) {
if (wo->nodetree && wo->use_nodes && ntreeHasTree(wo->nodetree, ntree)) {
GPU_material_free(&wo->gpumaterial);
}