Merge branch 'master' into blender2.8
[blender.git] / source / blender / blenkernel / intern / node.c
index 7c382bccfc9a0237fe665c5fd789a49c94a1eede..bb918ab71eb49346013d4ed5577c30d5bd602f8a 100644 (file)
@@ -1828,7 +1828,7 @@ void ntreeFreeTree(bNodeTree *ntree)
                if (tntree == ntree)
                        break;
        if (tntree == NULL) {
-               BKE_libblock_free_data(G.main, &ntree->id, true);
+               BKE_libblock_free_data(&ntree->id, true);
        }
 }